1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/games/xabacus/Makefile
Dmitry Marakasov 9c5281ae70 - Fix license
- Add LICENSE_FILE
- There is absolutely no need for binary to be owned by games:games
2014-12-02 04:16:18 +00:00

52 lines
1.3 KiB
Makefile

# Created by: Andrey Zakhvatov
# $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
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
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>