aboutsummaryrefslogblamecommitdiff
path: root/games/xabacus/Makefile
blob: eb90275b61163ee1f3d87e330328b4167854999f (plain) (tree)
1
2
3
4
5
6
7
8
9
                              
           
 
                       
                     
                     
                                                     
                                                           
 
                                 
                                          
 
                   
 
                         
                   
                   
                             
                   
 
                                                         
 

                                    
 






                                                           
 
           












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

USES=		tar:bzip2
USE_XORG=	xpm
GNU_CONFIGURE=	yes
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:${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>