aboutsummaryrefslogtreecommitdiff
path: root/lang/sdcc/Makefile
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2013-10-22 18:20:01 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2013-10-22 18:20:01 +0000
commit9771899d89624e6412c866b17a2dff644ce36084 (patch)
treed1d6f2167bd16df3b514f262e53d35358aa1d751 /lang/sdcc/Makefile
parentce89a80f592c444ebcf41ccf6b2d7951c75a7e3b (diff)
downloadports-9771899d89624e6412c866b17a2dff644ce36084.tar.gz
ports-9771899d89624e6412c866b17a2dff644ce36084.zip
Notes
Diffstat (limited to 'lang/sdcc/Makefile')
-rw-r--r--lang/sdcc/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/lang/sdcc/Makefile b/lang/sdcc/Makefile
index c6b8b234292a..0d71792ca730 100644
--- a/lang/sdcc/Makefile
+++ b/lang/sdcc/Makefile
@@ -52,8 +52,7 @@ Z80_CONFIGURE_OFF= --disable-z80 --disable-z80-port \
--disable-z180-port --disable-gbz80-port \
--disable-r2k-port --disable-r3ka-port
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if ${ARCH} == "amd64"
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
@@ -63,13 +62,13 @@ post-patch:
@${REINPLACE_CMD} '/install:/s/:.*/:/' \
${WRKSRC}/Makefile.in \
${WRKSRC}/support/sdbinutils/libiberty/Makefile.in
-.if empty(PORT_OPTIONS:MDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} 's, [a-z-]*doc,,' \
${WRKSRC}/Makefile.in \
${WRKSRC}/sim/ucsim/packages_in.mk
.endif
post-install:
- ${FIND} -d ${DATADIR} -type d -empty -delete
+ ${FIND} -d ${STAGEDIR}${DATADIR} -type d -empty -delete
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>