some existing COMPILER lines with arch restrictions etc. In the usual case this is now using "COMPILER = base-clang ports-gcc base-gcc" on ports with c++ libraries in WANTLIB. This is basically intended to be a noop on architectures using clang as the system compiler, but help with other architectures where we currently have many ports knocked out due to building with an unsuitable compiler - - some ports require c++11/newer so the GCC version in base that is used on these archirtectures is too old. - some ports have conflicts where an executable is built with one compiler (e.g. gcc from base) but a library dependency is built with a different one (e.g. gcc from ports), resulted in mixing incompatible libraries in the same address space. devel/gmp is intentionally skipped as it's on the path to building gcc - the c++ library there is unused in ports (and not built by default upstream) so intending to disable building gmpcxx in a future commit.
69 lines
1.7 KiB
Makefile
69 lines
1.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.34 2018/10/24 14:28:03 sthen Exp $
|
|
|
|
COMMENT-main = physics-based drawing puzzle game
|
|
COMMENT-npcomplete = extra levels for physics-based drawing puzzle game
|
|
|
|
DISTNAME = numptyphysics-0.3.r20100916
|
|
PKGNAME-main = ${DISTNAME}
|
|
PKGNAME-npcomplete = npcomplete-0.0.r20100124
|
|
REVISION-main = 6
|
|
REVISION-npcomplete = 3
|
|
|
|
MULTI_PACKAGES = -main -npcomplete
|
|
|
|
EXTRACT_SUFX = .tar.bz2
|
|
CATEGORIES = games
|
|
|
|
HOMEPAGE = http://numptyphysics.garage.maemo.org/
|
|
|
|
MASTER_SITES = https://spacehopper.org/mirrors/
|
|
|
|
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \
|
|
npcomplete-0.0.r20100124.tar.bz2
|
|
|
|
# GPLv3+
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB-main = SDL SDL_image SDL_ttf X11 c m \
|
|
pthread ${COMPILER_LIBCXX} z
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
RUN_DEPENDS-main = devel/desktop-file-utils \
|
|
x11/gtk+3,-guic
|
|
LIB_DEPENDS-main = devel/sdl \
|
|
devel/sdl-image \
|
|
devel/sdl-ttf
|
|
|
|
RUN_DEPENDS-npcomplete =${FULLPKGPATH-main}
|
|
|
|
CONFIGURE_STYLE = autoconf automake no-autoheader
|
|
AUTOCONF_VERSION = 2.61
|
|
AUTOMAKE_VERSION = 1.9
|
|
|
|
CPPFLAGS = -I${LOCALBASE}/include \
|
|
-I${X11BASE}/include
|
|
LDFLAGS = -pthread \
|
|
-L${LOCALBASE}/lib \
|
|
-L${X11BASE}/lib
|
|
CONFIGURE_ENV = CPPFLAGS="${CPPFLAGS}" \
|
|
LDFLAGS="${LDFLAGS}"
|
|
CONFIGURE_ARGS =--disable-hildon
|
|
|
|
WRKDIST = ${WRKDIR}/numptyphysics
|
|
|
|
post-patch:
|
|
@cd ${WRKSRC}; AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} aclocal
|
|
|
|
pre-configure:
|
|
@cd ${WRKSRC}; AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} /bin/sh ./autogen.sh
|
|
@${SUBST_CMD} ${WRKSRC}/Config.h
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKDIR}/npcomplete/*.nph \
|
|
${PREFIX}/share/numptyphysics/
|
|
|
|
.include <bsd.port.mk>
|