2019-07-12 20:45:45 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2019/07/12 20:46:19 sthen Exp $
|
2013-04-04 14:15:23 +00:00
|
|
|
|
|
|
|
COMMENT = game of life simulator
|
|
|
|
|
2019-01-02 12:43:19 +00:00
|
|
|
PKGNAME = golly-3.2
|
2019-04-16 20:19:01 +00:00
|
|
|
REVISION = 2
|
2013-04-04 14:15:23 +00:00
|
|
|
DISTNAME = ${PKGNAME}-src
|
2013-09-09 15:43:25 +00:00
|
|
|
WRKSRC = ${WRKDIST}/gui-wx/configure
|
2013-04-04 14:15:23 +00:00
|
|
|
CATEGORIES = games math
|
|
|
|
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=golly/}
|
|
|
|
|
|
|
|
HOMEPAGE = http://golly.sourceforge.net/
|
|
|
|
|
|
|
|
# GPLv2+
|
2019-07-12 20:45:45 +00:00
|
|
|
PERMIT_PACKAGE = Yes
|
2013-04-04 14:15:23 +00:00
|
|
|
|
|
|
|
MODULES = lang/python
|
2019-01-02 12:43:19 +00:00
|
|
|
LIB_DEPENDS = x11/wxWidgets>=3.0.4
|
2013-04-04 14:15:23 +00:00
|
|
|
RUN_DEPENDS = devel/desktop-file-utils
|
|
|
|
|
2019-01-02 12:43:19 +00:00
|
|
|
WANTLIB += ${COMPILER_LIBCXX} GL c m wx_baseu-3.0 wx_baseu_net-3.0
|
2019-01-16 19:47:58 +00:00
|
|
|
WANTLIB += wx_baseu_xml-3.0 wx_gtk3u_adv-3.0 wx_gtk3u_core-3.0
|
|
|
|
WANTLIB += wx_gtk3u_gl-3.0 wx_gtk3u_html-3.0 wx_gtk3u_qa-3.0 wx_gtk3u_xrc-3.0
|
|
|
|
WANTLIB += z
|
2013-04-04 14:15:23 +00:00
|
|
|
# Note: perl and python are loaded with wxDynamicLibrary.Load(), and
|
|
|
|
# python needs libutil to prevent undefined openpty and forkpty symbols.
|
2017-09-23 10:26:45 +00:00
|
|
|
WANTLIB += perl util ${MODPY_WANTLIB}
|
2013-04-04 14:15:23 +00:00
|
|
|
|
2019-01-02 12:43:19 +00:00
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
|
2013-04-04 14:15:23 +00:00
|
|
|
CONFIGURE_STYLE = gnu
|
|
|
|
CONFIGURE_ARGS = --enable-unicode
|
2019-01-02 12:43:19 +00:00
|
|
|
CONFIGURE_ENV = CPPFLAGS="-I${X11BASE}/include" \
|
|
|
|
LDFLAGS="-L${X11BASE}/lib -R${X11BASE}/lib ${LDFLAGS}"
|
2013-04-04 14:15:23 +00:00
|
|
|
SEPARATE_BUILD = Yes
|
|
|
|
|
|
|
|
FAKE_FLAGS = dist_doc_DATA="" \
|
|
|
|
docdir=""
|
|
|
|
|
|
|
|
NO_TEST = Yes
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
|
2013-09-09 15:43:25 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/../icons/appicon.xpm \
|
|
|
|
${PREFIX}/share/pixmaps/golly.xpm
|
2013-04-04 14:15:23 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/golly.desktop \
|
|
|
|
${PREFIX}/share/applications
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|