diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-17 19:03:30 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-17 19:03:30 +0800 |
commit | c25cacc3bf30334bb5baed26db722f0bf8fd93f8 (patch) | |
tree | 409d757fccc24ec89af9524b5bf100bcd0bc98f6 | |
parent | 72ee5542c7f83dfd2261588914f622a789f77787 (diff) | |
download | freebsd-ports-gnome-c25cacc3bf30334bb5baed26db722f0bf8fd93f8.tar.gz freebsd-ports-gnome-c25cacc3bf30334bb5baed26db722f0bf8fd93f8.tar.zst freebsd-ports-gnome-c25cacc3bf30334bb5baed26db722f0bf8fd93f8.zip |
- Switch to options helpers
-rw-r--r-- | x11-clocks/dclock/Makefile | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/x11-clocks/dclock/Makefile b/x11-clocks/dclock/Makefile index b0262aeba29e..ffa6da5ca54e 100644 --- a/x11-clocks/dclock/Makefile +++ b/x11-clocks/dclock/Makefile @@ -9,18 +9,14 @@ MASTER_SITES= http://opencircuitdesign.com/~tim/programs/dclock/archive/ MAINTAINER= ports@FreeBSD.org COMMENT= 7-segment digital clock with some optional features -OPTIONS_DEFINE= SOX XFT DOCS -OPTIONS_DEFAULT=SOX XFT -SOX_DESC= Install SOX to play audio - -WRKSRC= ${WRKDIR}/${PORTNAME} - USE_XORG= x11 xt USES= pkgconfig tar:tgz CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -lX11 -lXt -lm +WRKSRC= ${WRKDIR}/${PORTNAME} + PORTDOCS= README TODO PLIST_FILES= bin/dclock \ lib/X11/app-defaults/DClock \ @@ -28,17 +24,14 @@ PLIST_FILES= bin/dclock \ %%DATADIR%%/sounds/bell.wav \ %%DATADIR%%/sounds/digital.wav -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MSOX} -RUN_DEPENDS+= play:${PORTSDIR}/audio/sox -.endif +OPTIONS_DEFINE= SOX XFT DOCS +OPTIONS_DEFAULT=SOX XFT +SOX_DESC= Install SOX to play audio +SOX_RUN_DEPENDS= play:${PORTSDIR}/audio/sox -.if ${PORT_OPTIONS:MXFT} -USE_XORG+= xft -CPPFLAGS+= $$(freetype-config --cflags) -DXFT_SUPPORT -LDFLAGS+= $$(freetype-config --libs) -lXft -.endif +XFT_USE= XORG=xft +XFT_CPPFLAGS= $$(freetype-config --cflags) -DXFT_SUPPORT +XFT_LDFLAGS= $$(freetype-config --libs) -lXft post-patch: .for i in Dclock.c Dclock.ad dclock.1 @@ -59,11 +52,11 @@ do-install: ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/DClock) @${MKDIR} ${STAGEDIR}${DATADIR}/sounds (cd ${WRKSRC}/sounds && ${INSTALL_DATA} *.wav ${STAGEDIR}${DATADIR}/sounds) -.if ${PORT_OPTIONS:MDOCS} + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} (cd ${WRKSRC} && ${INSTALL_DATA} ${f} ${STAGEDIR}${DOCSDIR}) .endfor -.endif .include <bsd.port.mk> |