Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion packages/libwda/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,25 @@ class Libwda(MakefilePackage):
depends_on("openssl")
depends_on("pcre")

variant("frontier", default=False, description="include frontier-client interface")

depends_on("frontier-client", when="+frontier")

patch("version.patch", level=1)

@property
def build_targets(self):
tlist = [
"LIBWDA_VERSION=v{0}".format(self.version.underscored),
"LDFLAGS=-lcrypto", # rather than bigger Makefile patch
]
if self.spec.satisfies("+frontier"):
tlist.append("CFLAGS=-DFRONTIER")
tlist.append("LDFLAGS=-lcrypto -lfrontier_client -L{0}".format(
self.spec["frontier-client"].prefix.lib
))
else:
tlist.append("LDFLAGS=-lcrypto")

return tlist

@property
Expand Down