2015-11-22 19:34:00 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2015/11/22 19:34:00 landry Exp $
|
2012-03-28 12:53:53 +00:00
|
|
|
|
|
|
|
COMMENT = collection of puzzles games
|
|
|
|
|
2015-11-22 19:34:00 +00:00
|
|
|
DISTNAME = puzzles-20151117
|
2012-03-28 12:53:53 +00:00
|
|
|
CATEGORIES = games
|
|
|
|
|
2014-12-06 23:05:11 +00:00
|
|
|
MASTER_SITES = http://rhaalovely.net/stuff/
|
2012-03-28 12:53:53 +00:00
|
|
|
HOMEPAGE = http://www.chiark.greenend.org.uk/~sgtatham/puzzles/
|
2014-12-06 23:05:11 +00:00
|
|
|
|
|
|
|
#gitweb generates tarballs on the fly with varying timestamps
|
2015-11-22 19:34:00 +00:00
|
|
|
GIT_COMMIT = 2acd8baae8e411fae3235a5ab5c25b7523e55132
|
|
|
|
GIT_COMMIT_SHORT = 2acd8ba
|
2014-12-06 23:05:11 +00:00
|
|
|
GITWEB_URL = http://tartarus.org/~simon-git/gitweb/
|
2012-03-28 12:53:53 +00:00
|
|
|
|
|
|
|
# MIT
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2014-12-06 23:05:11 +00:00
|
|
|
WRKDIST = ${WRKDIR}/puzzles
|
2012-03-28 12:53:53 +00:00
|
|
|
USE_GMAKE = yes
|
2014-12-06 23:05:11 +00:00
|
|
|
MAKE_FILE = Makefile.gtk
|
2012-03-28 12:53:53 +00:00
|
|
|
MODULES = devel/gettext
|
|
|
|
LIB_DEPENDS = x11/gtk+2
|
2012-03-28 13:03:28 +00:00
|
|
|
RUN_DEPENDS = devel/desktop-file-utils devel/xdg-utils \
|
2015-03-27 08:41:04 +00:00
|
|
|
x11/gtk+3,-guic
|
2012-03-28 12:53:53 +00:00
|
|
|
MAKE_FLAGS = CC="${CC}"
|
|
|
|
|
2012-05-24 08:23:02 +00:00
|
|
|
WANTLIB += atk-1.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0
|
|
|
|
WANTLIB += gobject-2.0 pango-1.0 pangocairo-1.0 pangoft2-1.0
|
2014-12-06 23:05:11 +00:00
|
|
|
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
|
|
|
|
WANTLIB += Xrandr Xrender c cairo fontconfig freetype gdk-x11-2.0
|
|
|
|
WANTLIB += gtk-x11-2.0 m pthread z
|
|
|
|
|
|
|
|
# needs textproc/halibut, convert from ImageMagick, and a running X
|
|
|
|
dist:
|
|
|
|
ftp -o - "${GITWEB_URL}?p=puzzles.git;a=snapshot;h=${GIT_COMMIT};sf=tgz" | \
|
|
|
|
tar -C /tmp -xzf - && \
|
|
|
|
cd /tmp/puzzles-${GIT_COMMIT_SHORT} && \
|
|
|
|
perl mkfiles.pl && \
|
|
|
|
patch -i ${PATCHDIR}/patch-Makefile_gtk && \
|
|
|
|
${GMAKE} -f Makefile.gtk && \
|
|
|
|
${GMAKE} -C icons pngicons && \
|
|
|
|
sh makedist.sh
|
|
|
|
mv /tmp/puzzles.tar.gz /usr/ports/distfiles/${DISTNAME}.tar.gz
|
|
|
|
rm -Rf /tmp/puzzles-${GIT_COMMIT_SHORT}
|
2012-03-28 12:53:53 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|