openbsd-ports/games/puzzles/Makefile

48 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.11 2015/11/22 19:34:00 landry Exp $
COMMENT = collection of puzzles games
DISTNAME = puzzles-20151117
CATEGORIES = games
MASTER_SITES = http://rhaalovely.net/stuff/
HOMEPAGE = http://www.chiark.greenend.org.uk/~sgtatham/puzzles/
#gitweb generates tarballs on the fly with varying timestamps
GIT_COMMIT = 2acd8baae8e411fae3235a5ab5c25b7523e55132
GIT_COMMIT_SHORT = 2acd8ba
GITWEB_URL = http://tartarus.org/~simon-git/gitweb/
# MIT
PERMIT_PACKAGE_CDROM= Yes
WRKDIST = ${WRKDIR}/puzzles
USE_GMAKE = yes
MAKE_FILE = Makefile.gtk
MODULES = devel/gettext
LIB_DEPENDS = x11/gtk+2
RUN_DEPENDS = devel/desktop-file-utils devel/xdg-utils \
x11/gtk+3,-guic
MAKE_FLAGS = CC="${CC}"
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
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}
.include <bsd.port.mk>