1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/games/xabacus/Makefile
Mathieu Arnold 4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00

52 lines
1.3 KiB
Makefile

# 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>