Generate packing list.

Add support for use as a plugin (not yet usable).
This commit is contained in:
Trevor Johnson 2002-05-23 12:34:02 +00:00
parent 9c271e76ec
commit 70e9a62194
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=59794
4 changed files with 70 additions and 22 deletions

View file

@ -15,10 +15,11 @@ MAINTAINER= trevor@FreeBSD.org
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
GNU_CONFIGURE= yes
PLIST= ${WRKDIR}/pkg-plist
USE_X_PREFIX= yes
WRKSRC= ${WRKDIR}/${DISTNAME}
@ -29,14 +30,42 @@ post-patch:
s|CFLAGS =|CFLAGS +=|g ; \
s|CXXFLAGS=|CXXFLAGS+=|g ; \
s|-lm|${PTHREAD_LIBS} -lm|g ; \
s|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/Makefile.in
s|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/Makefile.in \
${WRKSRC}/PluginLink.sh
# Use as a plugin to SpiralLoops 2.0.0 results in "Can't open audio driver."
.if defined(PLUGIN)
${PERL} -pi -e 's|^//#define PLUGIN|#define PLUGIN|g' \
${WRKSRC}/Synth.C
post-build:
cd ${WRKSRC}; ${SH} ./PluginLink.sh
.endif # defined(PLUGIN)
pre-install:
.if defined(PLUGIN)
${ECHO_CMD} lib/SpiralSynth.so > ${PLIST}
.else
${ECHO_CMD} bin/SpiralSynth > ${PLIST}
.endif
.if !defined(NOPORTDOCS)
.for ii in ${DOC_FILES}
${ECHO_CMD} share/doc/spiralsynth/${ii} >> ${PLIST}
.endfor
${ECHO_CMD} @dirrm share/doc/spiralsynth >> ${PLIST}
.endif
do-install:
.if defined(PLUGIN)
${INSTALL_PROGRAM} ${WRKSRC}/SpiralSynth.so ${PREFIX}/lib
.else
${INSTALL_PROGRAM} ${WRKSRC}/SpiralSynth ${PREFIX}/bin
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/spiralsynth
.for i in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/spiralsynth
${MKDIR} ${DOCSDIR}
.for ii in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${ii} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View file

@ -1,5 +0,0 @@
bin/SpiralSynth
%%PORTDOCS%%share/doc/spiralsynth/CHANGES
%%PORTDOCS%%share/doc/spiralsynth/COPYING
%%PORTDOCS%%share/doc/spiralsynth/README
%%PORTDOCS%%@dirrm share/doc/spiralsynth

View file

@ -15,10 +15,11 @@ MAINTAINER= trevor@FreeBSD.org
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
GNU_CONFIGURE= yes
PLIST= ${WRKDIR}/pkg-plist
USE_X_PREFIX= yes
WRKSRC= ${WRKDIR}/${DISTNAME}
@ -29,14 +30,42 @@ post-patch:
s|CFLAGS =|CFLAGS +=|g ; \
s|CXXFLAGS=|CXXFLAGS+=|g ; \
s|-lm|${PTHREAD_LIBS} -lm|g ; \
s|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/Makefile.in
s|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/Makefile.in \
${WRKSRC}/PluginLink.sh
# Use as a plugin to SpiralLoops 2.0.0 results in "Can't open audio driver."
.if defined(PLUGIN)
${PERL} -pi -e 's|^//#define PLUGIN|#define PLUGIN|g' \
${WRKSRC}/Synth.C
post-build:
cd ${WRKSRC}; ${SH} ./PluginLink.sh
.endif # defined(PLUGIN)
pre-install:
.if defined(PLUGIN)
${ECHO_CMD} lib/SpiralSynth.so > ${PLIST}
.else
${ECHO_CMD} bin/SpiralSynth > ${PLIST}
.endif
.if !defined(NOPORTDOCS)
.for ii in ${DOC_FILES}
${ECHO_CMD} share/doc/spiralsynth/${ii} >> ${PLIST}
.endfor
${ECHO_CMD} @dirrm share/doc/spiralsynth >> ${PLIST}
.endif
do-install:
.if defined(PLUGIN)
${INSTALL_PROGRAM} ${WRKSRC}/SpiralSynth.so ${PREFIX}/lib
.else
${INSTALL_PROGRAM} ${WRKSRC}/SpiralSynth ${PREFIX}/bin
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/spiralsynth
.for i in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/spiralsynth
${MKDIR} ${DOCSDIR}
.for ii in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${ii} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View file

@ -1,5 +0,0 @@
bin/SpiralSynth
%%PORTDOCS%%share/doc/spiralsynth/CHANGES
%%PORTDOCS%%share/doc/spiralsynth/COPYING
%%PORTDOCS%%share/doc/spiralsynth/README
%%PORTDOCS%%@dirrm share/doc/spiralsynth