- Add AL and JACK options.
- Replace INSTALLS_SHLIB with USE_LDCONFIG. - Add CONFLICTS with future port allegro-devel.
This commit is contained in:
parent
dc0fd5fb83
commit
ba40e2a699
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=170237
4 changed files with 54 additions and 6 deletions
|
@ -16,13 +16,16 @@ COMMENT= A cross-platform library for games and multimedia programming
|
|||
|
||||
USE_AUTOTOOLS= autoconf:259
|
||||
USE_GMAKE= yes
|
||||
USE_LDCONFIG= yes
|
||||
USE_XLIB= yes
|
||||
WANT_GNOME= yes
|
||||
|
||||
OPTIONS= ARTS "Enable Arts support" off \
|
||||
OPTIONS= AL "Enable OpenAL support" off \
|
||||
ARTS "Enable Arts support" off \
|
||||
DEBUG "Build debugging library" off \
|
||||
DEVEL "Build development utilities" on \
|
||||
ESOUND "Enable Esound support" off \
|
||||
JACK "Enable JACK support" off \
|
||||
OPTIMIZED_CFLAGS "Enable compilation optimizations" on \
|
||||
PROFILE "Build profiling library" off \
|
||||
THREADS "Enable threads" on
|
||||
|
@ -34,9 +37,10 @@ ALL_TARGET= full-build
|
|||
|
||||
INFO= allegro
|
||||
|
||||
INSTALLS_SHLIB= yes
|
||||
SHLIB_VER= 42
|
||||
CONFLICTS= allegro-devel-[0-9]*
|
||||
PLIST_SUB= SHLIB_VER="${SHLIB_VER}"
|
||||
|
||||
SHLIB_VER= 42
|
||||
DEMO= demo.c demo.dat demo.h music.txt ../readme.txt
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
@ -45,6 +49,15 @@ DEMO= demo.c demo.dat demo.h music.txt ../readme.txt
|
|||
EXTRA_PATCHES= ${FILESDIR}/extra-patch-include-allegro-inline-fmaths.in
|
||||
.endif
|
||||
|
||||
.if defined(WITH_AL)
|
||||
LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal
|
||||
CONFIGURE_ARGS+=--enable-sgialdigi
|
||||
PLIST_SUB+= AL=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-sgialdigi
|
||||
PLIST_SUB+= AL="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_ARTS)
|
||||
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
|
||||
CONFIGURE_ARGS+=--enable-artsdigi
|
||||
|
@ -79,6 +92,15 @@ CONFIGURE_ARGS+=--disable-esddigi
|
|||
PLIST_SUB+= ESOUND="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_JACK)
|
||||
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
|
||||
CONFIGURE_ARGS+=--enable-jackdigi
|
||||
PLIST_SUB+= JACK=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-jackdigi
|
||||
PLIST_SUB+= JACK="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PROFILE)
|
||||
CONFIGURE_ARGS+=--enable-proflib
|
||||
PLIST_SUB+= PROFILE=""
|
||||
|
|
|
@ -98,6 +98,8 @@ include/xalleg.h
|
|||
%%ARTS%%lib/allegro/%%SHLIB_VER%%/alleg-artsdigi.so
|
||||
lib/allegro/%%SHLIB_VER%%/alleg-dga2.so
|
||||
%%ESOUND%%lib/allegro/%%SHLIB_VER%%/alleg-esddigi.so
|
||||
%%JACK%%lib/allegro/%%SHLIB_VER%%/alleg-jackdigi.so
|
||||
%%AL%%lib/allegro/%%SHLIB_VER%%/alleg-sgialdigi.so
|
||||
lib/allegro/%%SHLIB_VER%%/modules.lst
|
||||
%%DEBUG%%lib/liballd.so
|
||||
%%DEBUG%%lib/liballd.so.%%SHLIB_VER%%
|
||||
|
|
|
@ -16,13 +16,16 @@ COMMENT= A cross-platform library for games and multimedia programming
|
|||
|
||||
USE_AUTOTOOLS= autoconf:259
|
||||
USE_GMAKE= yes
|
||||
USE_LDCONFIG= yes
|
||||
USE_XLIB= yes
|
||||
WANT_GNOME= yes
|
||||
|
||||
OPTIONS= ARTS "Enable Arts support" off \
|
||||
OPTIONS= AL "Enable OpenAL support" off \
|
||||
ARTS "Enable Arts support" off \
|
||||
DEBUG "Build debugging library" off \
|
||||
DEVEL "Build development utilities" on \
|
||||
ESOUND "Enable Esound support" off \
|
||||
JACK "Enable JACK support" off \
|
||||
OPTIMIZED_CFLAGS "Enable compilation optimizations" on \
|
||||
PROFILE "Build profiling library" off \
|
||||
THREADS "Enable threads" on
|
||||
|
@ -34,9 +37,10 @@ ALL_TARGET= full-build
|
|||
|
||||
INFO= allegro
|
||||
|
||||
INSTALLS_SHLIB= yes
|
||||
SHLIB_VER= 42
|
||||
CONFLICTS= allegro-devel-[0-9]*
|
||||
PLIST_SUB= SHLIB_VER="${SHLIB_VER}"
|
||||
|
||||
SHLIB_VER= 42
|
||||
DEMO= demo.c demo.dat demo.h music.txt ../readme.txt
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
@ -45,6 +49,15 @@ DEMO= demo.c demo.dat demo.h music.txt ../readme.txt
|
|||
EXTRA_PATCHES= ${FILESDIR}/extra-patch-include-allegro-inline-fmaths.in
|
||||
.endif
|
||||
|
||||
.if defined(WITH_AL)
|
||||
LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal
|
||||
CONFIGURE_ARGS+=--enable-sgialdigi
|
||||
PLIST_SUB+= AL=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-sgialdigi
|
||||
PLIST_SUB+= AL="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_ARTS)
|
||||
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
|
||||
CONFIGURE_ARGS+=--enable-artsdigi
|
||||
|
@ -79,6 +92,15 @@ CONFIGURE_ARGS+=--disable-esddigi
|
|||
PLIST_SUB+= ESOUND="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_JACK)
|
||||
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
|
||||
CONFIGURE_ARGS+=--enable-jackdigi
|
||||
PLIST_SUB+= JACK=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-jackdigi
|
||||
PLIST_SUB+= JACK="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PROFILE)
|
||||
CONFIGURE_ARGS+=--enable-proflib
|
||||
PLIST_SUB+= PROFILE=""
|
||||
|
|
|
@ -98,6 +98,8 @@ include/xalleg.h
|
|||
%%ARTS%%lib/allegro/%%SHLIB_VER%%/alleg-artsdigi.so
|
||||
lib/allegro/%%SHLIB_VER%%/alleg-dga2.so
|
||||
%%ESOUND%%lib/allegro/%%SHLIB_VER%%/alleg-esddigi.so
|
||||
%%JACK%%lib/allegro/%%SHLIB_VER%%/alleg-jackdigi.so
|
||||
%%AL%%lib/allegro/%%SHLIB_VER%%/alleg-sgialdigi.so
|
||||
lib/allegro/%%SHLIB_VER%%/modules.lst
|
||||
%%DEBUG%%lib/liballd.so
|
||||
%%DEBUG%%lib/liballd.so.%%SHLIB_VER%%
|
||||
|
|
Loading…
Reference in a new issue