Lines 2-8
Link Here
|
2 |
# $FreeBSD: head/games/xabacus/Makefile 333619 2013-11-12 20:50:59Z danilo $ |
2 |
# $FreeBSD: head/games/xabacus/Makefile 333619 2013-11-12 20:50:59Z danilo $ |
3 |
|
3 |
|
4 |
PORTNAME= xabacus |
4 |
PORTNAME= xabacus |
5 |
PORTVERSION= 7.7.1 |
5 |
PORTVERSION= 8.0.0 |
6 |
CATEGORIES= games |
6 |
CATEGORIES= games |
7 |
MASTER_SITES= http://www.tux.org/~bagleyd/abacus/ \ |
7 |
MASTER_SITES= http://www.tux.org/~bagleyd/abacus/ \ |
8 |
http://ftp.tux.org/pub/tux/bagleyd/xabacus/ |
8 |
http://ftp.tux.org/pub/tux/bagleyd/xabacus/ |
Lines 12-42
Link Here
|
12 |
|
12 |
|
13 |
LICENSE= BSD |
13 |
LICENSE= BSD |
14 |
|
14 |
|
15 |
OPTIONS_DEFINE= MOTIF ESOUND |
15 |
USES= tar:bzip2 |
16 |
OPTIONS_DEFAULT= MOTIF |
|
|
17 |
|
18 |
USE_BZIP2= yes |
19 |
USE_XORG= xpm |
16 |
USE_XORG= xpm |
20 |
GNU_CONFIGURE= yes |
17 |
GNU_CONFIGURE= yes |
21 |
CONFIGURE_ARGS= --without-nas |
18 |
CONFIGURE_ARGS= --without-nas |
|
|
19 |
INSTALLS_ICONS= yes |
22 |
|
20 |
|
23 |
MOTIF_USES= motif |
21 |
DESKTOP_ENTRIES="XAbacus" "" "abacus" "${PORTNAME}" "" "" |
24 |
MOTIF_CONFIGURE_WITH= motif |
|
|
25 |
|
22 |
|
26 |
.include <bsd.port.options.mk> |
23 |
OPTIONS_DEFINE= ESOUND MOTIF |
|
|
24 |
OPTIONS_DEFAULT= MOTIF |
27 |
|
25 |
|
28 |
.if ${PORT_OPTIONS:MESOUND} |
26 |
ESOUND_LIB_DEPENDS_OFF= librplay.so:${PORTSDIR}/audio/rplay |
29 |
USE_GNOME+= esound |
27 |
ESOUND_USE= gnome=esound |
30 |
CONFIGURE_ARGS+= --without-rplay --with-esound |
28 |
ESOUND_CONFIGURE_ON= --without-rplay --with-esound |
31 |
.else |
29 |
ESOUND_CONFIGURE_OFF= --with-rplay --without-esound |
32 |
LIB_DEPENDS+= librplay.so:${PORTSDIR}/audio/rplay |
30 |
ESOUND_LDFLAGS= -L${LOCALBASE}/lib -laudiofile |
33 |
CONFIGURE_ARGS+= --with-rplay --without-esound |
31 |
MOTIF_USES= motif |
34 |
.endif |
32 |
MOTIF_CONFIGURE_WITH= motif |
35 |
|
33 |
|
36 |
post-patch: |
34 |
post-patch: |
37 |
@${REINPLACE_CMD} -e 's|/games/|/|g' ${WRKSRC}/Makefile.in |
35 |
@${REINPLACE_CMD} -e \ |
38 |
|
36 |
's|\($$(datadir)\)/games|\1| ; \ |
39 |
post-configure: |
37 |
s|@XWIDGETLDFLAGS@|@LDFLAGS@| ; \ |
40 |
@${REINPLACE_CMD} -e '/^XWIDGETLDFLAGS/d' ${WRKSRC}/Makefile |
38 |
s|\([[:blank:]]\)/usr/games|\1$$(DESTDIR)$$(bindir)| ; \ |
|
|
39 |
/chmod/s|^|#| ; \ |
40 |
/chown/s|^|#|' ${WRKSRC}/Makefile.in |
41 |
|
42 |
post-install: |
43 |
.for i in 16 22 24 32 48 |
44 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps |
45 |
(cd ${WRKSRC}/pixmaps/${i}x${i} && ${INSTALL_DATA} abacus.png \ |
46 |
${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps) |
47 |
.endfor |
41 |
|
48 |
|
42 |
.include <bsd.port.mk> |
49 |
.include <bsd.port.mk> |