View | Details | Raw Unified | Return to bug 51857
Collapse All | Expand All

(-)games/nethack34/Makefile (-2 / +3 lines)
Lines 36-43 Link Here
36
.if defined(WITH_GNOME_GRAPHICS)
36
.if defined(WITH_GNOME_GRAPHICS)
37
CATEGORIES=	games gnome
37
CATEGORIES=	games gnome
38
PKGNAMESUFFIX=	-gnome
38
PKGNAMESUFFIX=	-gnome
39
LIB_DEPENDS+=	gnugetopt:${PORTSDIR}/devel/libgnugetopt
39
USE_GETOPT_LONG=	yes
40
USE_GNOME=	yes
40
USE_GNOME=	gnomelibs
41
MAKE_ENV+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
41
GRAPHICS=	GNOME_GRAPHICS
42
GRAPHICS=	GNOME_GRAPHICS
42
.elif defined(WITH_QT_GRAPHICS)
43
.elif defined(WITH_QT_GRAPHICS)
43
PORTREVISION=	1
44
PORTREVISION=	1
(-)games/nethack34/files/patch-ad (-2 / +2 lines)
Lines 17-23 Link Here
17
+CFLAGS += -DQT_GRAPHICS
17
+CFLAGS += -DQT_GRAPHICS
18
+endif
18
+endif
19
+ifeq ("$(GRAPHICS)","GNOME_GRAPHICS")
19
+ifeq ("$(GRAPHICS)","GNOME_GRAPHICS")
20
+CFLAGS += -DGNOME_GRAPHICS
20
+CFLAGS += -DGNOME_GRAPHICS ${CPPFLAGS}
21
+endif
21
+endif
22
 
22
 
23
-CFLAGS = -O -I../include
23
-CFLAGS = -O -I../include
Lines 79-85 Link Here
79
 #
79
 #
80
 # libraries for Gnome
80
 # libraries for Gnome
81
-WINGNOMELIB = -lgnomeui -lgnome -lart_lgpl -lgtk -lgdk -lpopt
81
-WINGNOMELIB = -lgnomeui -lgnome -lart_lgpl -lgtk -lgdk -lpopt
82
+WINGNOMELIB = $(shell ${GNOME_CONFIG} --libs gnomeui) -lgnugetopt
82
+WINGNOMELIB = $(shell ${GNOME_CONFIG} --libs gnomeui) ${LDFLAGS}
83
 #
83
 #
84
 # libraries for Gem port
84
 # libraries for Gem port
85
 WINGEMLIB = -le_gem -lgem
85
 WINGEMLIB = -le_gem -lgem

Return to bug 51857