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.
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.24 2018/10/24 14:28:02 sthen Exp $
|
|
|
|
COMMENT= OpenGL game based on SNES classic Tetris Attack
|
|
|
|
DISTNAME= crack-attack-1.1.14
|
|
REVISION= 14
|
|
CATEGORIES= games
|
|
|
|
MAINTAINER= Mattieu Baptiste <mattieu.b@free.fr>
|
|
|
|
HOMEPAGE= http://www.nongnu.org/crack-attack/
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB = GL GLU ICE SM X11 Xcomposite Xcursor Xdamage Xext Xfixes \
|
|
Xi Xinerama Xmu Xrandr Xrender atk-1.0 c cairo expat fontconfig \
|
|
freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 glut>=4 \
|
|
gobject-2.0 gtk-x11-2.0 iconv intl m pango-1.0 pangocairo-1.0 \
|
|
pangoft2-1.0 pixman-1 png pthread ${COMPILER_LIBCXX} xcb xcb-render \
|
|
xcb-shm z
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH:=crack-attack/}
|
|
|
|
RUN_DEPENDS= devel/desktop-file-utils
|
|
LIB_DEPENDS= x11/gtk+2 \
|
|
graphics/freeglut
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications ${PREFIX}/share/pixmaps
|
|
cd ${WRKSRC}/data; \
|
|
${INSTALL_DATA} crack-attack.desktop ${PREFIX}/share/applications; \
|
|
${INSTALL_DATA} crack-attack.xpm ${PREFIX}/share/pixmaps
|
|
|
|
.include <bsd.port.mk>
|