- convert to optionsNG

- strip version information from LIB_DEPENDS to pet portlint
- include bsd.port.mk instead of bsd.port.{pre|post}.mk
This commit is contained in:
Rene Ladan 2012-06-05 18:27:14 +00:00
parent b6e6c5f10f
commit 88a428546b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=298505
2 changed files with 22 additions and 16 deletions

View File

@ -38,13 +38,17 @@ BOINC_CLIENT_USER?= boinc
BOINC_CLIENT_GROUP?= nobody
BOINC_CLIENT_HOME?= /var/db/boinc
OPTIONS= X11 "Build screensaver (requires net/boinc-client with X11)" off
OPTIONS_DEFINE= X11
.include <bsd.port.pre.mk>
X11_DESC= Build screensaver (requires net/boinc-client with X11)
.if !defined(WITHOUT_X11)
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg \
xcb.2:${PORTSDIR}/x11/libxcb
OPTIONS_DEFAULT=
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MX11}
LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg \
xcb:${PORTSDIR}/x11/libxcb
USE_GL= gl glu glut
USE_XORG= ice sm x11 xau xext xi xdamage xdmcp xfixes xmu xt xxf86vm
BUILD_DEPENDS+= ${LOCALBASE}/lib/libboinc_graphics2.a:${PORTSDIR}/net/boinc-client
@ -102,7 +106,7 @@ do-install:
${BOINC_CLIENT_HOME}/projects/${SETI_SITE}
${INSTALL_PROGRAM} -o ${BOINC_CLIENT_USER} -g ${BOINC_CLIENT_GROUP} \
${WRKSRC}/client/${SETI_BINARY} ${BOINC_CLIENT_HOME}/projects/${SETI_SITE}/
.if !defined(WITHOUT_X11)
.if ${PORT_OPTIONS:MX11}
${INSTALL_PROGRAM} -o ${BOINC_CLIENT_USER} -g ${BOINC_CLIENT_GROUP} \
${WRKSRC}/client/seti_graphics ${BOINC_CLIENT_HOME}/projects/${SETI_SITE}/
.endif
@ -111,4 +115,4 @@ post-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -18,21 +18,23 @@ LICENSE_FILE= ${WRKSRC}/COPYING
MAKE_JOBS_SAFE= yes
LIB_DEPENDS= spectrum.8:${PORTSDIR}/emulators/libspectrum
LIB_DEPENDS= spectrum:${PORTSDIR}/emulators/libspectrum
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libspectrum-prefix=${LOCALBASE} \
--with-local-prefix=${LOCALBASE}
MAN1= createhdf.1 fuse-utils.1 listbasic.1 raw2hdf.1 rzxcheck.1 rzxdump.1 rzxtool.1 scl2trd.1 snap2tzx.1 snapconv.1 tapeconv.1 tzxlist.1 profile2map.1
OPTIONS_DEFINE= AUDIOFILE
AUDIOFILE_DESC= Build audio <-> tape utilities
OPTIONS_DEFAULT= AUDIOFILE
.include <bsd.port.options.mk>
OPTIONS= AUDIOFILE "Build audio <-> tape utilities" on
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_AUDIOFILE)
LIB_DEPENDS+= audiofile.0:${PORTSDIR}/audio/libaudiofile
.if ${PORT_OPTIONS:MAUDIOFILE}
LIB_DEPENDS+= audiofile:${PORTSDIR}/audio/libaudiofile
PLIST_SUB= AUDIOFILE=""
MAN1+= audio2tape.1 tape2wav.1
.else
@ -40,10 +42,10 @@ CONFIGURE_ARGS+=--without-audiofile
PLIST_SUB= AUDIOFILE="@comment "
.endif
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS ChangeLog README ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>