blob: 8eb4a5d0fc9611cd6738d2aacae850f0244f0926 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Created by: Andrey Zakhvatov
# $FreeBSD$
PORTNAME= xabacus
PORTVERSION= 8.0.2
CATEGORIES= games
MASTER_SITES= http://www.tux.org/~bagleyd/abacus/ \
http://ftp.tux.org/pub/tux/bagleyd/xabacus/
MAINTAINER= ports@FreeBSD.org
COMMENT= Abacus for X Window System
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
USES= tar:bzip2
USE_XORG= xpm
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_x_app_defaults=${PREFIX}/lib/X11/app-defaults
CONFIGURE_ARGS= --without-nas
INSTALLS_ICONS= yes
DESKTOP_ENTRIES="XAbacus" "" "abacus" "${PORTNAME}" "" ""
OPTIONS_DEFINE= ESOUND MOTIF
OPTIONS_DEFAULT= MOTIF
ESOUND_LIB_DEPENDS_OFF= librplay.so:audio/rplay
ESOUND_USE= gnome=esound
ESOUND_CONFIGURE_ON= --without-rplay --with-esound
ESOUND_CONFIGURE_OFF= --with-rplay --without-esound
ESOUND_LDFLAGS= -L${LOCALBASE}/lib -laudiofile
MOTIF_USES= motif
MOTIF_CONFIGURE_WITH= motif
post-patch:
@${REINPLACE_CMD} -e \
's|\($$(datadir)\)/games|\1| ; \
s|@XWIDGETLDFLAGS@|@LDFLAGS@| ; \
s|\([[:blank:]]\)/usr/games|\1$$(DESTDIR)$$(bindir)| ; \
/chmod/s|^|#| ; \
/chown/s|^|#|' ${WRKSRC}/Makefile.in
post-install:
.for i in 16 22 24 32 48
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps
(cd ${WRKSRC}/pixmaps/${i}x${i} && ${INSTALL_DATA} abacus.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps)
.endfor
.include <bsd.port.mk>
|