mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Use PLIST_FILES insted of dynamically generated plist
- Define DOCS option, use PORTDOCS for it, don't install COPYING file - PTHREAD_CFLAGS is long gone, don't use it - Add LICENSE, desktop entry file - Support staging
This commit is contained in:
parent
6ee4d656a4
commit
5e22015a06
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348506
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= spiralloops
|
||||
PORTVERSION= 2.0.0
|
||||
PORTREVISION= 7
|
||||
PORTREVISION= 8
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= http://www.pawfal.org/Software/SpiralLoops/dload/
|
||||
DISTNAME= SpiralLoops-${PORTVERSION}
|
||||
@ -11,17 +11,21 @@ DISTNAME= SpiralLoops-${PORTVERSION}
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Loop-based sampler
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk
|
||||
|
||||
NO_STAGE= yes
|
||||
DOCDIR= share/doc/${PORTNAME}
|
||||
DOC_FILES= CHANGES COPYING README
|
||||
GNU_CONFIGURE= yes
|
||||
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
||||
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
|
||||
PLIST= ${WRKDIR}/pkg-plist
|
||||
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}
|
||||
|
||||
PLIST_FILES= bin/SpiralLoops
|
||||
PORTDOCS= CHANGES README
|
||||
|
||||
DESKTOP_ENTRIES="SpiralLoops" "" "" "SpiralLoops" "" false
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
@ -29,7 +33,7 @@ post-patch:
|
||||
${SED} -E "s:-ldl::g; \
|
||||
s:^CFLAGS:XCFLAGS:g; \
|
||||
s:^CXXFLAGS:XCXXFLAGS:g; \
|
||||
s:-O3:${PTHREAD_CFLAGS}:g; \
|
||||
s:-O3::g; \
|
||||
s:CFLAGS =:CFLAGS +=:g; \
|
||||
s:CXXFLAGS=:CXXFLAGS+=:g; \
|
||||
s:-lm:${PTHREAD_LIBS} -lm:g; \
|
||||
@ -41,21 +45,9 @@ post-patch:
|
||||
${REINPLACE_CMD} -e '/^#include <FL/s|.h>$$|.H>|; /^#include "FL/s|.h"$$|.H"|; \
|
||||
s|fl_file_chooser.H|Fl_File_Chooser.H|g; s|iostream.h|iostream|; s|fstream.h|fstream|'
|
||||
|
||||
pre-install:
|
||||
${ECHO_CMD} bin/SpiralLoops > ${PLIST}
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
.for i in ${DOC_FILES}
|
||||
${ECHO_CMD} ${DOCDIR}/`${BASENAME} ${i}` >> ${PLIST}
|
||||
.endfor
|
||||
${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/SpiralLoops ${PREFIX}/bin
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.for i in ${DOC_FILES}
|
||||
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/SpiralLoops ${STAGEDIR}${PREFIX}/bin
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user