aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-10-20 00:17:40 +0800
committermarino <marino@FreeBSD.org>2016-10-20 00:17:40 +0800
commit81126e6db8839620d415159df55a6aafc854f3f6 (patch)
tree6f1023002c1db3267c49454f3928541c67de18a3 /x11-toolkits
parent467c8b3d0f514fc9041588b6b21d91ed15ef2e5e (diff)
downloadfreebsd-ports-graphics-81126e6db8839620d415159df55a6aafc854f3f6.tar.gz
freebsd-ports-graphics-81126e6db8839620d415159df55a6aafc854f3f6.tar.zst
freebsd-ports-graphics-81126e6db8839620d415159df55a6aafc854f3f6.zip
x11-toolkits/qtermwidget: Adjust CFLAGS to support DragonFly
The HAVE_UTEMPTER flag is FreeBSD-specific and breaks the build on DragonFly, so make it conditional based on OPSYS. Approved by: DF blanket
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/qtermwidget/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/x11-toolkits/qtermwidget/Makefile b/x11-toolkits/qtermwidget/Makefile
index 2549fccd14b..34cc0905e9f 100644
--- a/x11-toolkits/qtermwidget/Makefile
+++ b/x11-toolkits/qtermwidget/Makefile
@@ -16,9 +16,13 @@ USE_QT5= buildtools_build core gui qmake_build widgets
CMAKE_ARGS+= -DBUILD_DESIGNER_PLUGIN:BOOL=OFF -DUSE_QT5:BOOL=ON
-CFLAGS+= -DHAVE_UTEMPTER
-
USE_GITHUB= yes
GH_ACCOUNT= lxde
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD
+CFLAGS+= -DHAVE_UTEMPTER
+.endif
+
+.include <bsd.port.post.mk>