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

(-)devel/sdl_sge/Makefile (-28 / +32 lines)
Lines 7-68 Link Here
7
7
8
PORTNAME=	sdl_sge
8
PORTNAME=	sdl_sge
9
PORTVERSION=	0.030809
9
PORTVERSION=	0.030809
10
PORTREVISION=	9
10
PORTREVISION=	10
11
CATEGORIES=	devel graphics
11
CATEGORIES=	devel graphics
12
MASTER_SITES=	http://www.etek.chalmers.se/~e8cal1/sge/files/ \
12
MASTER_SITES=	http://www.digitalfanatics.org/cal/sge/files/ \
13
		http://www.digitalfanatics.org/cal/sge/files/
13
		http://www.sourcefiles.org/Programming/Libraries/Graphics/
14
DISTNAME=	sge030809
14
DISTNAME=	sge030809
15
15
16
MAINTAINER=	ports@FreeBSD.org
16
MAINTAINER=	ports@FreeBSD.org
17
COMMENT=	A graphic library for the Simple DirectMedia Layer (SDL)
17
COMMENT=	A graphic library for the Simple DirectMedia Layer (SDL)
18
18
19
DEPRECATED=     Upstream disapear and distfile is no more available
19
LICENSE=	LGPL21 LGPL3
20
EXPIRATION_DATE=        2011-05-01
20
LICENSE_COMB=	dual
21
21
22
OPTIONS=	SDL_IMAGE "Enable support for SDL_image" On \
23
		FREETYPE "Enable FreeType support" On \
24
		DOCS "Install documentation" On \
25
		EXAMPLES "Install examples" On
26
27
USE_SDL=	sdl
22
USE_GMAKE=	yes
28
USE_GMAKE=	yes
23
USE_LDCONFIG=	yes
29
USE_LDCONFIG=	yes
24
30
MAKE_JOBS_SAFE=	yes
25
OPTIONS=	SDL_IMAGE "Enable support for SDL_IMAGE" On \
26
		FREETYPE "Enable FreeType support" On \
27
		DOCS "Install documentation" Off
28
31
29
.include <bsd.port.pre.mk>
32
.include <bsd.port.pre.mk>
30
33
31
.if !defined(WITHOUT_FREETYPE)
34
.if defined(WITHOUT_FREETYPE)
32
LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2
35
MAKE_ARGS+=	USE_FT=n
36
.else
37
LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
38
MAKE_ARGS+=	USE_FT=y
33
.endif
39
.endif
34
40
35
.if defined(WITHOUT_SDL_IMAGE)
41
.if defined(WITHOUT_SDL_IMAGE)
36
USE_SDL=	sdl
42
MAKE_ARGS+=	USE_IMG=n
37
.else
43
.else
38
USE_SDL=	image
44
USE_SDL+=	image
45
MAKE_ARGS+=	USE_IMG=y
39
.endif
46
.endif
40
47
41
.if !defined(WITH_DOCS)
48
.if !defined(WITH_DOCS)
42
NOPORTDOCS=	yes
49
NOPORTDOCS=	yes
43
.endif
50
.endif
44
51
45
post-patch:
52
.if !defined(WITH_EXAMPLES)
46
.if defined(WITHOUT_SDL_IMAGE)
53
NOPORTEXAMPLES=	yes
47
	@${REINPLACE_CMD} -e 's|#USE_IMG = n|USE_IMG = n|g' ${WRKSRC}/Makefile.conf
48
.else
49
	@${REINPLACE_CMD} -e 's|#USE_IMG = n|USE_IMG = y|g' ${WRKSRC}/Makefile.conf
50
.endif
51
.if defined(WITHOUT_FREETYPE)
52
	@${REINPLACE_CMD} -e 's|#USE_FT = n|USE_FT = n|g' ${WRKSRC}/Makefile.conf
53
.else
54
	@${REINPLACE_CMD} -e 's|#USE_FT = n|USE_FT = y|g' ${WRKSRC}/Makefile.conf
55
.endif
54
.endif
56
	@${REINPLACE_CMD} -e 's|PREFIX =PREFIX|PREFIX =${PREFIX}|g' ${WRKSRC}/Makefile.conf
55
57
	@${REINPLACE_CMD} -e 's|PREFIX_H =PREFIX_H|PREFIX_H =${PREFIX}/include/SDL|g' ${WRKSRC}/Makefile.conf
56
post-patch:
58
	@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile.conf
57
	@${REINPLACE_CMD} -e \
58
		's|PREFIX =PREFIX|PREFIX =${PREFIX}|g ; \
59
		 s|PREFIX_H =PREFIX_H|PREFIX_H =${PREFIX}/include/SDL|g ; \
60
		 s|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile.conf
59
61
60
post-install:
62
post-install:
61
.if !defined(NOPORTDOCS)
63
.if !defined(NOPORTDOCS)
62
	@${MKDIR} ${DOCSDIR}
64
	@${MKDIR} ${DOCSDIR}
63
	@${INSTALL_MAN} ${WRKSRC}/docs/* ${DOCSDIR}
65
	${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
66
.endif
67
.if !defined(NOPORTEXAMPLES)
64
	@${MKDIR} ${EXAMPLESDIR}
68
	@${MKDIR} ${EXAMPLESDIR}
65
	@${INSTALL_MAN} ${WRKSRC}/examples/* ${EXAMPLESDIR}
69
	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
66
.endif
70
.endif
67
71
68
.include <bsd.port.post.mk>
72
.include <bsd.port.post.mk>
(-)devel/sdl_sge/files/patch-Makefile.conf (-8 / +9 lines)
Lines 1-5 Link Here
1
--- work/sge030809/Makefile.conf	Tue Aug 12 00:43:35 2003
1
--- Makefile.conf.orig	2003-08-12 07:43:35.000000000 +0900
2
+++ Makefile.conf	Fri Aug  4 15:20:41 2006
2
+++ Makefile.conf	2011-08-23 21:00:48.000000000 +0900
3
@@ -7,11 +7,6 @@
3
@@ -7,11 +7,6 @@
4
 #USE_IMG = n
4
 #USE_IMG = n
5
 #QUIET = y
5
 #QUIET = y
Lines 12-18 Link Here
12
 # Make sure sdl-config is available
12
 # Make sure sdl-config is available
13
 HAVE_SDL =$(shell if (sdl-config --version) < /dev/null > /dev/null 2>&1; then echo "y"; else echo "n"; fi;)
13
 HAVE_SDL =$(shell if (sdl-config --version) < /dev/null > /dev/null 2>&1; then echo "y"; else echo "n"; fi;)
14
 ifeq ($(HAVE_SDL),n)
14
 ifeq ($(HAVE_SDL),n)
15
@@ -19,45 +14,24 @@
15
@@ -19,27 +14,17 @@
16
 endif
16
 endif
17
 
17
 
18
 # Where should SGE be installed?
18
 # Where should SGE be installed?
Lines 25-49 Link Here
25
 
25
 
26
 # Flags passed to the compiler
26
 # Flags passed to the compiler
27
-CFLAGS =-Wall -O3 -ffast-math
27
-CFLAGS =-Wall -O3 -ffast-math
28
+CFLAGS +=-Wall -O3 -ffast-math
28
+#CFLAGS =-Wall -O3 -ffast-math
29
 SGE_CFLAGS =$(shell sdl-config --cflags)
29
 SGE_CFLAGS =$(shell sdl-config --cflags)
30
-# Uncomment to make some more optimizations
30
-# Uncomment to make some more optimizations
31
-#CFLAGS =-Wall -O9 -ffast-math -march=i686
31
-#CFLAGS =-Wall -O9 -ffast-math -march=i686
32
-
32
-
33
 
33
 
34
 # Libs config
34
 # Libs config
35
 SGE_LIBS =$(shell sdl-config --libs) -lstdc++
35
-SGE_LIBS =$(shell sdl-config --libs) -lstdc++
36
 
36
-
37
-
37
-
38
-# Is freetype-config available?
38
-# Is freetype-config available?
39
-HAVE_FT =$(shell if (freetype-config --version) < /dev/null > /dev/null 2>&1; then echo "y"; else echo "n"; fi;)
39
-HAVE_FT =$(shell if (freetype-config --version) < /dev/null > /dev/null 2>&1; then echo "y"; else echo "n"; fi;)
40
-ifeq ($(HAVE_FT),n)
40
-ifeq ($(HAVE_FT),n)
41
-  USE_FT = n
41
-  USE_FT = n
42
-endif
42
-endif
43
-
43
+SGE_LIBS =$(shell sdl-config --libs)
44
 
44
 ifneq ($(USE_FT),n)
45
 ifneq ($(USE_FT),n)
45
   USE_FT = y
46
   USE_FT = y
46
   SGE_LIBS +=$(shell freetype-config --libs)
47
@@ -47,17 +32,6 @@
47
   FT_CFLAGS =$(shell freetype-config --cflags)
48
   FT_CFLAGS =$(shell freetype-config --cflags)
48
 endif
49
 endif
49
 
50
 
(-)devel/sdl_sge/pkg-descr (-1 / +1 lines)
Lines 11-14 Link Here
11
 -Basic texture mapping
11
 -Basic texture mapping
12
 -Filled and gourand shaded polygons (with antialiasing or alpha blending)
12
 -Filled and gourand shaded polygons (with antialiasing or alpha blending)
13
13
14
WWW: http://www.etek.chalmers.se/~e8cal1/sge/
14
WWW: http://www.digitalfanatics.org/cal/sge/
(-)devel/sdl_sge/pkg-plist (-26 / +26 lines)
Lines 35-64 Link Here
35
%%PORTDOCS%%%%DOCSDIR%%/ttf-input.html
35
%%PORTDOCS%%%%DOCSDIR%%/ttf-input.html
36
%%PORTDOCS%%%%DOCSDIR%%/ttf-output.html
36
%%PORTDOCS%%%%DOCSDIR%%/ttf-output.html
37
%%PORTDOCS%%%%DOCSDIR%%/ttf.html
37
%%PORTDOCS%%%%DOCSDIR%%/ttf.html
38
%%PORTDOCS%%%%EXAMPLESDIR%%/Makefile
38
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile
39
%%PORTDOCS%%%%EXAMPLESDIR%%/README
39
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
40
%%PORTDOCS%%%%EXAMPLESDIR%%/alpha.cpp
40
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alpha.cpp
41
%%PORTDOCS%%%%EXAMPLESDIR%%/basics.cpp
41
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basics.cpp
42
%%PORTDOCS%%%%EXAMPLESDIR%%/basics_c.c
42
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basics_c.c
43
%%PORTDOCS%%%%EXAMPLESDIR%%/bitmapfont.cpp
43
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bitmapfont.cpp
44
%%PORTDOCS%%%%EXAMPLESDIR%%/blib.cpp
44
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/blib.cpp
45
%%PORTDOCS%%%%EXAMPLESDIR%%/blitting.cpp
45
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/blitting.cpp
46
%%PORTDOCS%%%%EXAMPLESDIR%%/collision.cpp
46
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/collision.cpp
47
%%PORTDOCS%%%%EXAMPLESDIR%%/fire.cpp
47
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fire.cpp
48
%%PORTDOCS%%%%EXAMPLESDIR%%/font.bmp
48
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/font.bmp
49
%%PORTDOCS%%%%EXAMPLESDIR%%/font.ttf
49
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/font.ttf
50
%%PORTDOCS%%%%EXAMPLESDIR%%/input.cpp
50
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/input.cpp
51
%%PORTDOCS%%%%EXAMPLESDIR%%/inputdeluxe.cpp
51
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/inputdeluxe.cpp
52
%%PORTDOCS%%%%EXAMPLESDIR%%/poly.cpp
52
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/poly.cpp
53
%%PORTDOCS%%%%EXAMPLESDIR%%/rotate.cpp
53
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rotate.cpp
54
%%PORTDOCS%%%%EXAMPLESDIR%%/sfont.cpp
54
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sfont.cpp
55
%%PORTDOCS%%%%EXAMPLESDIR%%/sfont.png
55
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sfont.png
56
%%PORTDOCS%%%%EXAMPLESDIR%%/smiley.bmp
56
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/smiley.bmp
57
%%PORTDOCS%%%%EXAMPLESDIR%%/speedtest.cpp
57
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/speedtest.cpp
58
%%PORTDOCS%%%%EXAMPLESDIR%%/sprite.cpp
58
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sprite.cpp
59
%%PORTDOCS%%%%EXAMPLESDIR%%/sprite2.cpp
59
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sprite2.cpp
60
%%PORTDOCS%%%%EXAMPLESDIR%%/ttf_readme
60
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ttf_readme
61
%%PORTDOCS%%%%EXAMPLESDIR%%/tux.bmp
61
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tux.bmp
62
@dirrmtry include/SDL
62
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
63
%%PORTDOCS%%@dirrm %%DOCSDIR%%
63
%%PORTDOCS%%@dirrm %%DOCSDIR%%
64
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
64
@dirrmtry include/SDL

Return to bug 160096