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

(-)emulators/hugo/Makefile (-29 / +35 lines)
Lines 5-56 Link Here
5
PORTVERSION=	2.12
5
PORTVERSION=	2.12
6
PORTREVISION=	12
6
PORTREVISION=	12
7
CATEGORIES=	emulators
7
CATEGORIES=	emulators
8
MASTER_SITES=	http://www.zeograd.com/download/
8
MASTER_SITES=	http://www.zeograd.com/download/ \
9
		http://www.sourcefiles.org/Emulators/Videogames/
9
10
10
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	A PC Engine (TurboGrafx 16) emulator
12
COMMENT=	PC Engine (TurboGrafx 16) emulator
12
13
13
BUILD_DEPENDS=	${LOCALBASE}/include/argp.h:${PORTSDIR}/devel/argp-standalone
14
LICENSE=	BSD GPLv2
15
LICENSE_COMB=	multi
16
17
LIB_DEPENDS=	libargp.so:${PORTSDIR}/devel/argp-standalone
18
19
OPTIONS_DEFINE=	GTK2 DOCS NETPLAY SDL_MIXER
20
OPTIONS_DEFAULT=GTK2
21
OPTIONS_SUB=	yes
22
NETPLAY_DESC=	Netplay support
23
SDL_MIXER_DESC=	SDL_mixer support
14
24
15
GNU_CONFIGURE=	yes
16
USES=		gmake pkgconfig
25
USES=		gmake pkgconfig
17
USE_SDL=	sdl
26
USE_SDL=	sdl
27
USE_CSTD=	gnu89
28
GNU_CONFIGURE=	yes
29
30
CFLAGS+=	-Wno-return-type
31
CPPFLAGS+=	-I${LOCALBASE}/include
18
LDFLAGS+=	-L${LOCALBASE}/lib
32
LDFLAGS+=	-L${LOCALBASE}/lib
19
CONFIGURE_ENV+=	SDL_CONFIG="${SDL_CONFIG}"
20
33
21
.if !defined(WITHOUT_NETPLAY)
34
.include <bsd.port.options.mk>
22
USE_SDL+=	net
35
23
.else
36
.if empty(PORT_OPTIONS:MGTK2) && ${PORT_OPTIONS:MNETPLAY}
24
CONFIGURE_ARGS+=	--enable-netplay=no
37
IGNORE=	NETPLAY support requires GTK2 support
25
.endif
38
.endif
26
39
27
.if defined(WITHOUT_GUI)
40
.if ${PORT_OPTIONS:MGTK2}
28
CONFIGURE_ARGS+=	--enable-gui=no --disable-gtktest
29
.else
30
USE_GNOME=	gtk20
41
USE_GNOME=	gtk20
42
.else
43
CONFIGURE_ARGS+=	--disable-gui --disable-gtktest
31
.endif
44
.endif
32
45
33
.if defined(WITH_OGG_SUPPORT)
46
.if ${PORT_OPTIONS:MNETPLAY}
34
LIB_DEPENDS+=	vorbis.4:${PORTSDIR}/audio/libvorbis
47
USE_SDL+=	net
35
WITH_SDL_MIXER=	yes
48
.else
36
CONFIGURE_ARGS+=	--with-ogg-support
49
CONFIGURE_ENV+=	ac_cv_lib_SDL_net_main=no
37
.endif
50
.endif
38
51
39
.if defined(WITH_SDL_MIXER)
52
.if ${PORT_OPTIONS:MSDL_MIXER}
53
LIB_DEPENDS+=	libvorbis.so:${PORTSDIR}/audio/libvorbis
40
USE_SDL+=	mixer
54
USE_SDL+=	mixer
41
CONFIGURE_ARGS+=	--with-sdl-mixer
55
CFLAGS+=	-DOGG_SUPPORT
42
.endif
43
44
MAKE_ENV+=	DOCSDIR="${DOCSDIR}"
45
46
.if defined(NOPORTDOCS)
47
MAKE_ENV+=	PORTDOCS=false
48
.else
56
.else
49
MAKE_ENV+=	PORTDOCS=true
57
CONFIGURE_ENV+=	ac_cv_lib_SDL_mixer_main=no \
58
		ac_cv_lib_vorbis_main=no \
59
		ac_cv_lib_vorbisfile_main=no
50
.endif
60
.endif
51
61
52
NO_STAGE=	yes
53
post-patch:
54
	@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/configure
55
56
.include <bsd.port.mk>
62
.include <bsd.port.mk>
(-)emulators/hugo/files/patch-Makefile.in (-3 / +3 lines)
Lines 16-27 Link Here
16
-	if test -d $(srcdir)/doc; then \
16
-	if test -d $(srcdir)/doc; then \
17
-	  $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/doc; \
17
-	  $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/doc; \
18
-	  for doc in $(srcdir)/doc/*.{html,txt,css}; do \
18
-	  for doc in $(srcdir)/doc/*.{html,txt,css}; do \
19
+	if test -d $(srcdir)/doc && ${PORTDOCS}; then \
19
+	if test -d $(srcdir)/doc; then \
20
+	  $(mkinstalldirs) ${DOCSDIR}; \
20
+	  $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/hugo; \
21
+	  for doc in $(srcdir)/doc/*.html $(srcdir)/doc/*.txt $(srcdir)/doc/*.css; do \
21
+	  for doc in $(srcdir)/doc/*.html $(srcdir)/doc/*.txt $(srcdir)/doc/*.css; do \
22
 	    if test -f $$doc; then \
22
 	    if test -f $$doc; then \
23
-	      $(INSTALL_DATA) $$doc $(DESTDIR)$(pkgdatadir)/doc; \
23
-	      $(INSTALL_DATA) $$doc $(DESTDIR)$(pkgdatadir)/doc; \
24
+	      $(INSTALL_DATA) $$doc ${DOCSDIR}; \
24
+	      $(INSTALL_DATA) $$doc $(DESTDIR)$(datadir)/doc/hugo; \
25
 	    fi \
25
 	    fi \
26
 	  done \
26
 	  done \
27
 	fi
27
 	fi
(-)emulators/hugo/files/patch-configure (-2 / +10 lines)
Lines 27-33 Link Here
27
 then
27
 then
28
 
28
 
29
 
29
 
30
@@ -8657,7 +8659,7 @@
30
@@ -8657,13 +8657,13 @@
31
 
31
 
32
 		 fi
32
 		 fi
33
 	 ;;
33
 	 ;;
Lines 36-42 Link Here
36
 	  echo "FreeBSD build enabled"
36
 	  echo "FreeBSD build enabled"
37
 
37
 
38
 		 	 HUGO_TARGET_MACHINE="FREEBSD"
38
 		 	 HUGO_TARGET_MACHINE="FREEBSD"
39
@@ -8675,6 +8677,35 @@
39
 
40
- 			 CFLAGS="$CFLAGS `sdl-config --cflags`"
41
-       LIBS="$LIBS `sdl-config --libs`"
42
+ 			 CFLAGS="$CFLAGS `${SDL_CONFIG} --cflags`"
43
+       LIBS="$LIBS `${SDL_CONFIG} --libs`"
44
 
45
 
46
 
47
@@ -8675,6 +8675,35 @@
40
   SDL_FREEBSD_FALSE=
48
   SDL_FREEBSD_FALSE=
41
 fi
49
 fi
42
 
50
 
(-)emulators/hugo/pkg-plist (-1 / +1 lines)
Lines 1-5 Link Here
1
bin/hugo
1
bin/hugo
2
bin/hugod
2
%%NETPLAY%%bin/hugod
3
%%PORTDOCS%%%%DOCSDIR%%/README.old.txt
3
%%PORTDOCS%%%%DOCSDIR%%/README.old.txt
4
%%PORTDOCS%%%%DOCSDIR%%/cdrom.html
4
%%PORTDOCS%%%%DOCSDIR%%/cdrom.html
5
%%PORTDOCS%%%%DOCSDIR%%/cdrom.txt
5
%%PORTDOCS%%%%DOCSDIR%%/cdrom.txt

Return to bug 185334