2006-07-29 21:28:37 +00:00
|
|
|
# New ports collection makefile for: pets
|
|
|
|
# Date created: 2006-07-28
|
|
|
|
# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
|
|
|
|
#
|
|
|
|
# $MBSDlabs$
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pets
|
|
|
|
PORTVERSION= 1.0
|
|
|
|
CATEGORIES= games
|
2007-02-07 17:13:37 +00:00
|
|
|
MASTER_SITES= http://www.loria.fr/~rougier/pub/Software/
|
2006-07-29 21:28:37 +00:00
|
|
|
|
2006-10-08 18:16:09 +00:00
|
|
|
MAINTAINER= stas@FreeBSD.org
|
2006-07-29 21:28:37 +00:00
|
|
|
COMMENT= Funny pets to follow your mouse pointer
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/pet-${PORTVERSION}
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GNOME= gtk20 pkgconfig
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2006-08-08 08:59:26 +00:00
|
|
|
GTK_CFLAGS= pkg-config gtk+-2.0 gdk-pixbuf-xlib-2.0 --cflags
|
|
|
|
GTK_LDFLAGS= pkg-config gtk+-2.0 gdk-pixbuf-xlib-2.0 --libs
|
2006-07-29 21:28:37 +00:00
|
|
|
|
|
|
|
do-build:
|
2006-08-08 08:59:26 +00:00
|
|
|
(cd ${WRKSRC} && ${CXX} ${CFLAGS} `${GTK_CFLAGS}` -c pet.cc)
|
|
|
|
(cd ${WRKSRC} && ${CXX} ${LDFLAGS} `${GTK_LDFLAGS}` pet.o -o pets)
|
2006-07-29 21:28:37 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pets ${PREFIX}/bin
|
|
|
|
@(cd ${WRKSRC}/data; ${PAX} -rw -p e -l . ${DATADIR})
|
|
|
|
@${FIND} ${DATADIR}/ -type f -name "*~" -delete
|
|
|
|
@${FIND} ${DATADIR}/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;
|
|
|
|
@${FIND} ${DATADIR}/ -exec ${CHOWN} ${SHAREOWN} {} \;
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|