mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
7990f81066
After a discussion on the mailing list on moving manpages to ${PREFIX}/share/man for consistency with base where it is installed in usr/share/man, it appeared the same should happen to GNU info files which were installed under share in base and not in ports. Now texinfo is not in base on any of the supported version of FreeBSD it is possible to proceed to this move and it is easier to do than the manpage change. Other benefit than consistency are less patching: all build tools but cmake are expecting info files to be under share/info and cmake (patched here) was having an exception for BSD so the patch makes FreeBSD case less specific for them Bump revision of all impacted ports PR: 232907 exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D17816
80 lines
2.2 KiB
Makefile
80 lines
2.2 KiB
Makefile
# Created by: Jimmy Olgeni <olgeni@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= allegro
|
|
DISTVERSION= 4.4.2
|
|
PORTREVISION= 8
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SF/alleg/allegro/${PORTVERSION}
|
|
|
|
MAINTAINER= tobik@FreeBSD.org
|
|
COMMENT= Cross-platform library for games and multimedia programming
|
|
|
|
LICENSE= GIFTWARE
|
|
LICENSE_NAME= Giftware
|
|
LICENSE_FILE= ${WRKSRC}/docs/txt/license.txt
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
# Required for building libloadpng.a and liballeggl.a
|
|
BUILD_DEPENDS= png>0:graphics/png \
|
|
libGLU>0:graphics/libGLU
|
|
LIB_DEPENDS= libogg.so:audio/libogg \
|
|
libvorbis.so:audio/libvorbis
|
|
|
|
USES= cmake makeinfo pkgconfig
|
|
USE_XORG= ice sm x11 xpm xext xcursor xxf86vm xxf86dga
|
|
USE_LDCONFIG= yes
|
|
|
|
INFO= allegro
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
PLIST_SUB= SHLIB_VER="${PORTVERSION}"
|
|
CMAKE_ARGS= -DDOCDIR="${DOCSDIR}" \
|
|
-DWANT_MODULES=off \
|
|
-DWANT_LOGG=on \
|
|
-DWANT_EXAMPLES=off
|
|
|
|
# Wrong versioning upstream
|
|
PORTSCOUT= ignore:1
|
|
|
|
OPTIONS_DEFINE= EXAMPLES DOCS
|
|
OPTIONS_MULTI= AUDIO
|
|
OPTIONS_MULTI_AUDIO= ALSA JACK OSS SNDIO
|
|
OPTIONS_DEFAULT= OSS
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
|
|
ALSA_USES= localbase:ldflags
|
|
ALSA_CMAKE_BOOL= WANT_ALSA
|
|
|
|
JACK_LIB_DEPENDS= libjack.so:audio/jack
|
|
JACK_CMAKE_BOOL= WANT_JACK
|
|
|
|
OSS_CMAKE_BOOL= WANT_OSS
|
|
|
|
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
|
|
SNDIO_CMAKE_BOOL= WANT_SNDIO
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/allegro-$${ALLEGRO_VERSION}|| ; s|"info"|"${INFO_PATH}"|g ' \
|
|
${WRKSRC}/docs/CMakeLists.txt
|
|
@${REINPLACE_CMD} -e 's|<X11/extensions/xf86dga.h>|<X11/extensions/Xxf86dga.h>|' \
|
|
${WRKSRC}/src/x/xdga2.c
|
|
@${CP} ${FILESDIR}/sndio.c ${WRKSRC}/src/unix
|
|
|
|
post-patch-JACK-on:
|
|
@${REINPLACE_CMD} -e 's|jack_client = jack_client_new(jack_client_name);|jack_client = jack_client_open(jack_client_name, (jack_options_t)0, NULL);|' \
|
|
${WRKSRC}/src/unix/jack.c
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/docs/man/*.3 ${STAGEDIR}${MAN3PREFIX}/man/man3/
|
|
|
|
post-install-EXAMPLES-on:
|
|
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} demos ${STAGEDIR}${EXAMPLESDIR})
|
|
${INSTALL_DATA} ${WRKSRC}/allegro.cfg ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|