Based on the feedback on games/uzdoom port, here are small tweaks for
the gzdoom.
- Add DEBUG_PACKAGES
- Move CFLAGS and CXXFLAGS to use CONFIGURE_ARGS
Compiles on amd64.
timo
diff /usr/ports
path + /usr/ports
commit - 1e4343b45afa48be70ca89d10803a577a4a167ba
blob - 26917553922d2a639e12ea978371147571a7523a
file + games/gzdoom/Makefile
--- games/gzdoom/Makefile
+++ games/gzdoom/Makefile
@@ -7,6 +7,7 @@ ONLY_FOR_ARCHS = i386 amd64
COMMENT = OpenGL engine for idTech 1 games like
doom,hexen,heretic...
V = 4.14.2
+RELEASE = 0
DIST_TUPLE = github ZDoom gzdoom g${V} .
PKGNAME = gzdoom-${V}
@@ -28,13 +29,14 @@ COMPILER = base-clang ports-gcc
MODULES = devel/cmake
-CONFIGURE_ARGS += -DNO_GTK=ON
-CONFIGURE_ARGS += -DDYN_OPENAL=NO
-CONFIGURE_ARGS += -DHAVE_STDINT_H=1
-CONFIGURE_ARGS += -DNO_OPENMP=ON
+CONFIGURE_ARGS += -DNO_GTK=ON \
+ -DDYN_OPENAL=NO \
+ -DHAVE_STDINT_H=1 \
+ -DNO_OPENMP=ON \
+ -DCMAKE_C_FLAGS="${CFLAGS} -I${X11BASE}/include" \
+ -DCMAKE_CXX_FLAGS="${CXXFLAGS} -I.
-I${LOCALBASE}/include"
-CFLAGS += -I${X11BASE}/include
-CXXFLAGS += -I. -I${LOCALBASE}/include
+DEBUG_PACKAGES = ${BUILD_PACKAGES}
LIB_DEPENDS = archivers/bzip2 \
audio/openal \