mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Support staging
- Minor port improvements
This commit is contained in:
parent
0f3612305b
commit
5ecdc6949f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340483
@ -3,7 +3,5 @@
|
|||||||
|
|
||||||
OPTIONS_SLAVE= ALLEGRO
|
OPTIONS_SLAVE= ALLEGRO
|
||||||
MASTERDIR= ${.CURDIR}/../dumb
|
MASTERDIR= ${.CURDIR}/../dumb
|
||||||
PKGNAMESUFFIX= -allegro
|
|
||||||
NO_STAGE= yes
|
|
||||||
|
|
||||||
.include "${MASTERDIR}/Makefile"
|
.include "${MASTERDIR}/Makefile"
|
||||||
|
@ -11,7 +11,6 @@ MAINTAINER= amdmi3@FreeBSD.org
|
|||||||
COMMENT= IT, XM, S3M, and MOD player library
|
COMMENT= IT, XM, S3M, and MOD player library
|
||||||
|
|
||||||
USES= gmake
|
USES= gmake
|
||||||
NO_STAGE= yes
|
|
||||||
|
|
||||||
OPTIONS_DEFINE= ALLEGRO
|
OPTIONS_DEFINE= ALLEGRO
|
||||||
ALLEGRO_DESC= Enable allegro support
|
ALLEGRO_DESC= Enable allegro support
|
||||||
@ -22,7 +21,8 @@ ALLEGRO_DESC= Enable allegro support
|
|||||||
LIB_DEPENDS+= liballeg.so:${PORTSDIR}/devel/allegro
|
LIB_DEPENDS+= liballeg.so:${PORTSDIR}/devel/allegro
|
||||||
PLIST_SUB+= ALLEGRO=""
|
PLIST_SUB+= ALLEGRO=""
|
||||||
MAKE_ARGS= _PORT_ALLEGRO_CFLAGS="`allegro-config --cflags`"
|
MAKE_ARGS= _PORT_ALLEGRO_CFLAGS="`allegro-config --cflags`"
|
||||||
MAKE_ARGS+= LINK_ALLEGRO="-lm -L${LOCALBASE}/lib -lalleg"
|
MAKE_ARGS+= LINK_ALLEGRO="`allegro-config --libs`"
|
||||||
|
PKGNAMESUFFIX= -allegro
|
||||||
CONFLICTS= dumb-[0-9]*
|
CONFLICTS= dumb-[0-9]*
|
||||||
.else
|
.else
|
||||||
PLIST_SUB+= ALLEGRO="@comment "
|
PLIST_SUB+= ALLEGRO="@comment "
|
||||||
@ -34,13 +34,14 @@ CONFLICTS= dumb-allegro-[0-9]*
|
|||||||
CFLAGS+= -fPIC
|
CFLAGS+= -fPIC
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
pre-configure:
|
post-patch:
|
||||||
@${CP} ${FILESDIR}/config.txt ${WRKSRC}/make
|
@${REINPLACE_CMD} -e 's|_INSTALL_PATH := |&$${DESTDIR}|' ${WRKSRC}/Makefile
|
||||||
@${REINPLACE_CMD} -e "s,@LOCALBASE@,${LOCALBASE}," ${WRKSRC}/make/config.txt
|
|
||||||
|
do-configure:
|
||||||
|
@${ECHO_CMD} 'include make/unix.inc' > ${WRKSRC}/make/config.txt
|
||||||
|
@${ECHO_CMD} 'ALL_TARGETS := core core-examples core-headers' >> ${WRKSRC}/make/config.txt
|
||||||
.if ${PORT_OPTIONS:MALLEGRO}
|
.if ${PORT_OPTIONS:MALLEGRO}
|
||||||
@${REINPLACE_CMD} -e "s,@ALLEGRO@,," ${WRKSRC}/make/config.txt
|
@${ECHO_CMD} 'ALL_TARGETS += allegro allegro-examples allegro-headers' >> ${WRKSRC}/make/config.txt
|
||||||
.else
|
|
||||||
@${REINPLACE_CMD} -e "s,@ALLEGRO@,#," ${WRKSRC}/make/config.txt
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
include make/unix.inc
|
|
||||||
ALL_TARGETS := core core-examples core-headers
|
|
||||||
@ALLEGRO@ ALL_TARGETS += allegro allegro-examples allegro-headers
|
|
||||||
PREFIX := @LOCALBASE@
|
|
Loading…
Reference in New Issue
Block a user