diff --git a/devel/sdl_sge/Makefile b/devel/sdl_sge/Makefile index 56783963deb3..b569cb8d07f5 100644 --- a/devel/sdl_sge/Makefile +++ b/devel/sdl_sge/Makefile @@ -1,51 +1,55 @@ # Created by: Jona Joachim PORTNAME= sdl_sge PORTVERSION= 0.030809 PORTREVISION= 15 CATEGORIES= devel graphics MASTER_SITES= http://ports-space.haiku-files.org/source/ DISTNAME= sge030809 MAINTAINER= ports@FreeBSD.org COMMENT= Graphic library for the Simple DirectMedia Layer (SDL) LICENSE= LGPL20+ # LICENSE is LGPL21 USES= gmake sdl USE_SDL= sdl USE_LDCONFIG= yes PORTDOCS= * PORTEXAMPLES= * +DEPRECATED= Upstream no longer maintained +EXPIRATION_DATE= 2021-10-31 + OPTIONS_DEFINE= SDL FREETYPE DOCS EXAMPLES OPTIONS_DEFAULT=SDL FREETYPE FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2 +FREETYPE_USES= pkgconfig FREETYPE_MAKE_ARGS= USE_FT=y FREETYPE_MAKE_ARGS_OFF= USE_FT=n SDL_DESC= Enable support for SDL_image SDL_USE= SDL=image SDL_MAKE_ARGS= USE_IMG=y SDL_MAKE_ARGS_OFF= USE_IMG=n post-patch: @${REINPLACE_CMD} -e \ 's|PREFIX =PREFIX|PREFIX =${STAGEDIR}${PREFIX}|g ; \ s|PREFIX_H =PREFIX_H|PREFIX_H =${STAGEDIR}${PREFIX}/include/SDL|g ; \ s|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile.conf post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libSGE.so post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR} post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} .include diff --git a/devel/sdl_sge/files/patch-Makefile.conf b/devel/sdl_sge/files/patch-Makefile.conf index eae89fe5544e..7e638957ad24 100644 --- a/devel/sdl_sge/files/patch-Makefile.conf +++ b/devel/sdl_sge/files/patch-Makefile.conf @@ -1,64 +1,66 @@ ---- Makefile.conf.orig 2003-08-12 07:43:35.000000000 +0900 -+++ Makefile.conf 2011-08-23 21:00:48.000000000 +0900 -@@ -7,11 +7,6 @@ +--- Makefile.conf.orig 2003-08-11 22:43:35 UTC ++++ Makefile.conf +@@ -7,11 +7,6 @@ C_COMP = y #USE_IMG = n #QUIET = y - -# Compilers (C and C++) -CC=gcc -CXX=g++ - # Make sure sdl-config is available HAVE_SDL =$(shell if (sdl-config --version) < /dev/null > /dev/null 2>&1; then echo "y"; else echo "n"; fi;) ifeq ($(HAVE_SDL),n) -@@ -19,27 +14,17 @@ +@@ -19,45 +14,24 @@ ifeq ($(HAVE_SDL),n) endif # Where should SGE be installed? -PREFIX =$(shell sdl-config --prefix) +PREFIX =PREFIX # Where should the headerfiles be installed? -PREFIX_H =$(shell sdl-config --prefix)/include/SDL +PREFIX_H =PREFIX_H # Flags passed to the compiler -CFLAGS =-Wall -O3 -ffast-math +#CFLAGS =-Wall -O3 -ffast-math SGE_CFLAGS =$(shell sdl-config --cflags) -# Uncomment to make some more optimizations -#CFLAGS =-Wall -O9 -ffast-math -march=i686 -- +- # Libs config -SGE_LIBS =$(shell sdl-config --libs) -lstdc++ -- ++SGE_LIBS =$(shell sdl-config --libs) + - -# Is freetype-config available? -HAVE_FT =$(shell if (freetype-config --version) < /dev/null > /dev/null 2>&1; then echo "y"; else echo "n"; fi;) -ifeq ($(HAVE_FT),n) - USE_FT = n -endif -+SGE_LIBS =$(shell sdl-config --libs) - +- ifneq ($(USE_FT),n) USE_FT = y -@@ -47,17 +32,6 @@ - FT_CFLAGS =$(shell freetype-config --cflags) +- SGE_LIBS +=$(shell freetype-config --libs) +- FT_CFLAGS =$(shell freetype-config --cflags) ++ SGE_LIBS +=$(shell pkg-config freetype2 --libs) ++ FT_CFLAGS =$(shell pkg-config freetype2 --cflags) endif - -# Is SDL_image available? -HAVE_IMG =$(shell if test -e "`sdl-config --prefix`/include/SDL/SDL_image.h" >/dev/null 2>&1; then echo "y"; else echo "n"; fi;) - -ifneq ($(USE_IMG),y) - ifneq ($(USE_IMG),n) - USE_IMG =$(HAVE_IMG) - endif -endif - ifeq ($(USE_IMG),y) SGE_LIBS +=-lSDL_image endif -