- Fix LICENSE
- Switch to options helpers
This commit is contained in:
parent
4bdd4f3a9e
commit
8d1a913000
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=413800
1 changed files with 14 additions and 19 deletions
|
@ -11,8 +11,7 @@ DISTNAME= sge030809
|
|||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Graphic library for the Simple DirectMedia Layer (SDL)
|
||||
|
||||
LICENSE= LGPL21 LGPL3
|
||||
LICENSE_COMB= dual
|
||||
LICENSE= LGPL20+ # LICENSE is LGPL21
|
||||
|
||||
USES= gmake
|
||||
USE_SDL= sdl
|
||||
|
@ -23,23 +22,15 @@ PORTEXAMPLES= *
|
|||
|
||||
OPTIONS_DEFINE= SDL FREETYPE DOCS EXAMPLES
|
||||
OPTIONS_DEFAULT=SDL FREETYPE
|
||||
|
||||
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2
|
||||
FREETYPE_MAKE_ARGS= USE_FT=y
|
||||
FREETYPE_MAKE_ARGS_OFF= USE_FT=n
|
||||
|
||||
SDL_DESC= Enable support for SDL_image
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MFREETYPE}
|
||||
LIB_DEPENDS+= libfreetype.so:print/freetype2
|
||||
MAKE_ARGS+= USE_FT=y
|
||||
.else
|
||||
MAKE_ARGS+= USE_FT=n
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MSDL}
|
||||
USE_SDL+= image
|
||||
MAKE_ARGS+= USE_IMG=y
|
||||
.else
|
||||
MAKE_ARGS+= USE_IMG=n
|
||||
.endif
|
||||
SDL_USE= SDL=image
|
||||
SDL_MAKE_ARGS= USE_IMG=y
|
||||
SDL_MAKE_ARGS_OFF= USE_IMG=n
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
|
@ -48,9 +39,13 @@ post-patch:
|
|||
s|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile.conf
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libSGE.so
|
||||
@${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}
|
||||
|
||||
|
|
Loading…
Reference in a new issue