espie d22f05416a don't use -Wl,--as-needed for final links of executables.
This assumes runtime support works in a certain way, which is wildly
inaccurate with clang
2017-05-17 13:53:49 +00:00

46 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.7 2017/05/17 13:53:49 espie Exp $
COMMENT = game of life simulator
PKGNAME = golly-2.7
REVISION = 0
DISTNAME = ${PKGNAME}-src
WRKSRC = ${WRKDIST}/gui-wx/configure
CATEGORIES = games math
MAINTAINER = Donovan Watteau <tsoomi@gmail.com>
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=golly/}
HOMEPAGE = http://golly.sourceforge.net/
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/python
LIB_DEPENDS = x11/wxWidgets
RUN_DEPENDS = devel/desktop-file-utils
# Note: perl and python are loaded with wxDynamicLibrary.Load(), and
# python needs libutil to prevent undefined openpty and forkpty symbols.
WANTLIB += c m perl pthread ${LIBCXX} util wx_base wx_base_net wx_gtk2_adv
WANTLIB += wx_gtk2_core wx_gtk2_html wx_gtk2_richtext z ${MODPY_WANTLIB}
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --enable-unicode
SEPARATE_BUILD = Yes
FAKE_FLAGS = dist_doc_DATA="" \
docdir=""
NO_TEST = Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/../icons/appicon.xpm \
${PREFIX}/share/pixmaps/golly.xpm
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${FILESDIR}/golly.desktop \
${PREFIX}/share/applications
.include <bsd.port.mk>