pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

golly: Makefile for version 4.2, to show build problems.



Module Name:	pkgsrc-wip
Committed By:	Olaf Seibert <rhialto%falu.nl@localhost>
Pushed By:	rhialto
Date:		Sun Oct 2 14:10:36 2022 +0200
Changeset:	1151d28c880c7e5842b8c5ed06e9a43fa1affd07

Added Files:
	golly/Makefile-4.2

Log Message:
golly: Makefile for version 4.2, to show build problems.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1151d28c880c7e5842b8c5ed06e9a43fa1affd07

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 golly/Makefile-4.2 | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

diffs:
diff --git a/golly/Makefile-4.2 b/golly/Makefile-4.2
new file mode 100644
index 0000000000..27020a4713
--- /dev/null
+++ b/golly/Makefile-4.2
@@ -0,0 +1,58 @@
+# $NetBSD$
+
+VERSION=	4.2
+PKGNAME=	golly-${VERSION}
+DISTNAME=	${PKGNAME_NOREV}-src
+CATEGORIES=	x11
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=golly/${PKGNAME_NOREV}/} 
+# results in http://downloads.sourceforge.net/sourceforge/golly/golly-3.1.tar.gz
+# we want https://sourceforge.net/projects/golly/files/golly/golly-3.1/golly-3.1-src.tar.gz
+#MASTER_SITES=	https://sourceforge.net/projects/golly/files/golly/${PKGNAME_NOREV}/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://golly.sourceforge.net/
+COMMENT=	Fast Game-Of-Life (and similar automata) visualizer
+LICENSE=	gnu-gpl-v2
+
+USE_LANGUAGES=	c c++
+USE_TOOLS+=	gmake
+MAKE_FILE=	makefile-gtk
+BUILD_DIRS=	gui-wx
+REPLACE_PERL+=	Help/Lexicon/modify.pl
+
+INSTALLATION_DIRS+=	bin
+INSTALLATION_DIRS+=	share/doc/golly
+INSTALLATION_DIRS+=	share/golly
+
+PYTHON_VERSIONS_INCOMPATIBLE = 27
+
+# The new 4.0 version no longer has a configure script,
+# but you need to edit a file by hand...
+do-configure:
+	( ${ECHO} "WX_CONFIG = wx-config-3.2"; \
+	  ${ECHO} "PYTHON = python${PYVERSSUFFIX}"; \
+	  ${ECHO} "GOLLYDIR = ${PREFIX}/share/golly" \
+	) >${WRKSRC}/gui-wx/local-gtk.mk
+
+# The new 4.0 version no longer has an install target in its "Makefile".
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/golly  ${DESTDIR}${PREFIX}/bin/
+	${INSTALL_PROGRAM} ${WRKSRC}/bgolly ${DESTDIR}${PREFIX}/bin/
+	#
+	cd ${WRKSRC}/docs && pax -wr * ${DESTDIR}${PREFIX}/share/doc/golly
+	#
+.for dir in Help Patterns Rules Scripts
+	cd ${WRKSRC} && pax -wr ${dir} ${DESTDIR}${PREFIX}/share/golly
+.endfor
+	# Remove lots of unneeded x bits
+	find ${DESTDIR}${PREFIX}/share/golly -type f -exec chmod a-x {} +
+
+.include "../../lang/python/pyversion.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+#.include "../../lang/lua/buildlink3.mk" # uses a vendored version 5.4.3
+.include "../../lang/${PYPACKAGE}/buildlink3.mk"
+# Note: needs wxGTK32 from pkgsrc-current, not 2022Q3
+.include "../../x11/wxGTK32/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index