svn commit: r331302 - head/lang/sdcc

Tijl Coosemans tijl at FreeBSD.org
Tue Oct 22 18:20:02 UTC 2013


Author: tijl
Date: Tue Oct 22 18:20:01 2013
New Revision: 331302
URL: http://svnweb.freebsd.org/changeset/ports/331302

Log:
  Staging support.

Modified:
  head/lang/sdcc/Makefile

Modified: head/lang/sdcc/Makefile
==============================================================================
--- head/lang/sdcc/Makefile	Tue Oct 22 16:57:44 2013	(r331301)
+++ head/lang/sdcc/Makefile	Tue Oct 22 18:20:01 2013	(r331302)
@@ -52,8 +52,7 @@ Z80_CONFIGURE_OFF=	--disable-z80 --disab
 			--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>


More information about the svn-ports-all mailing list