aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2013-10-04 20:44:42 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2013-10-04 20:44:42 +0000
commit1709825e792f47011a61416c1f7262bef1eec5b2 (patch)
tree11a935b985f34241cdbf06f23c5de80bbd4d35c1
parent1ba49d93774c06e05280a1d7ecf5d628199f8570 (diff)
downloadports-1709825e792f47011a61416c1f7262bef1eec5b2.tar.gz
ports-1709825e792f47011a61416c1f7262bef1eec5b2.zip
Notes
-rw-r--r--devel/libdasm/Makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/devel/libdasm/Makefile b/devel/libdasm/Makefile
index 7e4d59011362..269aba5cb469 100644
--- a/devel/libdasm/Makefile
+++ b/devel/libdasm/Makefile
@@ -12,14 +12,14 @@ COMMENT= Simple x86 disassembly library
LICENSE= BSD
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" PREFIX="${STAGEDIR}${PREFIX}"
USE_LDCONFIG= yes
-OPTIONS_DEFINE= DOCS EXAMPLES
-
PORTDOCS= HISTORY.txt README.txt
PORTEXAMPLES= README.txt das.c simple.c
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS EXAMPLES
+
.include <bsd.port.options.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
@@ -27,19 +27,19 @@ CFLAGS+= -fPIC -DPIC
.endif
post-patch:
- @${REINPLACE_CMD} -E 's,^(CC|CFLAGS|PREFIX).*=,\1 ?=,; \
- s,libdasm.so.1.0,libdasm.so.1,g; \
- s,cp ,${INSTALL_DATA} ,g' \
- ${WRKSRC}/Makefile ${WRKSRC}/examples/Makefile
+ @${REINPLACE_CMD} 's,libdasm.so.1.0,libdasm.so.1,g; \
+ s,cp ,${INSTALL_DATA} ,g; \
+ /cd examples/d' \
+ ${WRKSRC}/Makefile
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} ${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} ${STAGEDIR}${EXAMPLESDIR}
.endif
.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>