freebsd-ports/games/xabacus/Makefile

52 lines
1.3 KiB
Makefile
Raw Normal View History

# Created by: Andrey Zakhvatov
1999-08-25 08:06:33 +02:00
# $FreeBSD$
PORTNAME= xabacus
PORTVERSION= 8.0.0
CATEGORIES= games
MASTER_SITES= http://www.tux.org/~bagleyd/abacus/ \
http://ftp.tux.org/pub/tux/bagleyd/xabacus/
MAINTAINER= ports@FreeBSD.org
2003-02-20 18:32:26 +01:00
COMMENT= Abacus for X Window System
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
USES= tar:bzip2
USE_XORG= xpm
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-nas
2014-10-06 23:30:01 +02:00
CONFIGURE_ENV= ac_cv_x_app_defaults=${PREFIX}/lib/X11/app-defaults
INSTALLS_ICONS= yes
DESKTOP_ENTRIES="XAbacus" "" "abacus" "${PORTNAME}" "" ""
OPTIONS_DEFINE= ESOUND MOTIF
OPTIONS_DEFAULT= MOTIF
ESOUND_LIB_DEPENDS_OFF= librplay.so:${PORTSDIR}/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>