Support staging.
This commit is contained in:
@@ -10,7 +10,6 @@ MAINTAINER= ehaupt@FreeBSD.org
|
||||
COMMENT= Module rendering library for xmp
|
||||
|
||||
USES= gmake
|
||||
NO_STAGE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
|
||||
+3
-6
@@ -15,7 +15,6 @@ LICENSE= GPLv2
|
||||
LIB_DEPENDS= xmp:${PORTSDIR}/audio/libxmp
|
||||
|
||||
USES= pkgconfig gmake
|
||||
NO_STAGE= yes
|
||||
WANT_GNOME= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
@@ -24,8 +23,6 @@ CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
MAN1= xmp.1
|
||||
|
||||
CONFIG_FILES= xmp.conf modules.conf
|
||||
|
||||
OPTIONS_DEFINE= ALSA PULSEAUDIO
|
||||
@@ -51,10 +48,10 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e 's|\ install-conf||' ${WRKSRC}/Makefile.in
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${ETCDIR}
|
||||
${MKDIR} ${STAGEDIR}${ETCDIR}
|
||||
.for f in ${CONFIG_FILES}
|
||||
@test -f ${ETCDIR}/${f} || ${INSTALL_DATA} ${WRKSRC}/src/${f} ${ETCDIR}/${f}
|
||||
${INSTALL_DATA} ${WRKSRC}/src/${f} ${ETCDIR}/${f}.sample
|
||||
@test -f ${ETCDIR}/${f} || ${INSTALL_DATA} ${WRKSRC}/src/${f} ${STAGEDIR}${ETCDIR}/${f}
|
||||
${INSTALL_DATA} ${WRKSRC}/src/${f} ${STAGEDIR}${ETCDIR}/${f}.sample
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
man/man1/xmp.1.gz
|
||||
@unexec if cmp -s %D/%%ETCDIR%%/xmp.conf %D/%%ETCDIR%%/xmp.conf.sample; then rm -f %D/%%ETCDIR%%/xmp.conf; fi
|
||||
%%ETCDIR%%/xmp.conf.sample
|
||||
@exec [ -f %B/xmp.conf ] || cp %B/%f %B/xmp.conf
|
||||
|
||||
Reference in New Issue
Block a user