2014-06-16 23:03:57 +02:00
|
|
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
2001-03-04 21:33:24 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= allegro
|
2013-11-05 19:14:56 +01:00
|
|
|
DISTVERSION= 5.0.9
|
2014-03-10 20:36:56 +01:00
|
|
|
PORTREVISION= 1
|
2001-03-04 21:33:24 +01:00
|
|
|
CATEGORIES= devel
|
2011-01-19 14:06:54 +01:00
|
|
|
MASTER_SITES= SF/alleg/allegro/${PORTVERSION}
|
2013-11-05 19:14:56 +01:00
|
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
|
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
|
2001-03-04 21:33:24 +01:00
|
|
|
|
2014-06-16 23:03:57 +02:00
|
|
|
MAINTAINER= koalative@gmail.com
|
2012-09-17 11:28:52 +02:00
|
|
|
COMMENT= Cross-platform library for games and multimedia programming
|
2001-03-04 21:33:24 +01:00
|
|
|
|
2014-03-10 16:15:55 +01:00
|
|
|
LICENSE= ZLIB BSD3CLAUSE
|
2013-11-05 19:14:56 +01:00
|
|
|
LICENSE_COMB= dual
|
2013-07-26 18:04:47 +02:00
|
|
|
|
2013-11-05 19:14:56 +01:00
|
|
|
LIB_DEPENDS+= libjack.so:${PORTSDIR}/audio/jack \
|
|
|
|
libpng15.so:${PORTSDIR}/graphics/png \
|
|
|
|
libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
|
|
libvorbis.so:${PORTSDIR}/audio/libvorbis \
|
|
|
|
libFLAC.so:${PORTSDIR}/audio/flac \
|
|
|
|
libphysfs.so:${PORTSDIR}/devel/physfs
|
2013-07-26 18:04:47 +02:00
|
|
|
|
2013-12-26 00:29:34 +01:00
|
|
|
USES= gmake cmake openal:soft pkgconfig
|
2008-03-22 09:55:40 +01:00
|
|
|
USE_XORG= x11 xpm xext xcursor xxf86vm xxf86dga
|
2014-03-10 16:15:55 +01:00
|
|
|
USE_GL= glu
|
2014-01-20 20:31:15 +01:00
|
|
|
USE_GNOME= gtk20
|
2013-07-26 18:04:47 +02:00
|
|
|
USE_FREETYPE= yes
|
2013-11-05 19:14:56 +01:00
|
|
|
USE_LDCONFIG= yes
|
2005-06-30 19:46:46 +02:00
|
|
|
|
2013-11-05 19:14:56 +01:00
|
|
|
PLIST_SUB+= SHLIB_VER="${SHLIB_VER}"
|
|
|
|
PLIST_SUB+= SHLIB_VER1="${SHLIB_VER1}"
|
2002-11-06 17:51:46 +01:00
|
|
|
|
2013-11-05 19:14:56 +01:00
|
|
|
SHLIB_VER= ${PORTVERSION}
|
|
|
|
SHLIB_VER1= ${PORTVERSION:R}
|
2009-07-16 21:42:39 +02:00
|
|
|
|
2013-07-26 18:04:47 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
|
2012-09-17 11:28:52 +02:00
|
|
|
|
2013-11-05 19:14:56 +01:00
|
|
|
# Wrong versioning upstream
|
2014-01-20 20:31:15 +01:00
|
|
|
PORTSCOUT= limitw:1,even skipv:5.0.10
|
2013-03-17 06:55:42 +01:00
|
|
|
|
2013-11-05 19:14:56 +01:00
|
|
|
OPTIONS_DEFINE= ALSA DOCS PULSEAUDIO
|
|
|
|
OPTIONS_GROUP= DEMOS_EXAMPLES
|
|
|
|
OPTIONS_GROUP_DEMOS_EXAMPLES= DEMOS EXAMPLES
|
|
|
|
OPTIONS_DEFAULT= ALSA DEMOS
|
|
|
|
DEMOS_DESC= Install Demos programs, requires EXAMPLES
|
2013-03-17 06:55:42 +01:00
|
|
|
|
2013-11-05 19:14:56 +01:00
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}${PKGNAMESUFFIX}
|
2013-03-17 06:55:42 +01:00
|
|
|
|
2013-07-26 18:04:47 +02:00
|
|
|
DOCSRCDIR1= ${WRKSRC}
|
2013-11-05 19:14:56 +01:00
|
|
|
DOC_FILES1= README.txt
|
2013-07-26 18:04:47 +02:00
|
|
|
|
2013-11-05 19:14:56 +01:00
|
|
|
DOCSRCDIR2= ${WRKSRC}/docs
|
|
|
|
DOCSDIR2= ${DOCSDIR}/docs
|
2013-07-26 18:04:47 +02:00
|
|
|
|
2013-11-05 19:14:56 +01:00
|
|
|
OPTIONS_SUB= yes
|
2013-07-26 18:04:47 +02:00
|
|
|
|
2013-11-05 19:14:56 +01:00
|
|
|
DOCS_BUILD_DEPENDS= ${LOCALBASE}/bin/pandoc:${PORTSDIR}/textproc/hs-pandoc
|
|
|
|
ALSA_LIB_DEPENDS= libasound.so.2:${PORTSDIR}/audio/alsa-lib
|
|
|
|
ALSA_CMAKE_ON= -DWANT_ALSA=on
|
|
|
|
ALSA_CMAKE_OFF= -DWANT_ALSA=off
|
|
|
|
PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio
|
|
|
|
PULSEAUDIO_CMAKE_ON= -DWANT_PULSEAUDIO=on
|
|
|
|
PULSEAUDIO_CMAKE_OFF= -DWANT_PULSEAUDIO=off
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2013-07-26 18:04:47 +02:00
|
|
|
|
2013-11-05 19:14:56 +01:00
|
|
|
.if ${PORT_OPTIONS:MDEMOS} && ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
CMAKE_ARGS+=-DWANT_DEMO=on
|
|
|
|
SUB_FILES+= cosmic_protector speed \
|
|
|
|
pkg-message
|
|
|
|
MASTER_SITES+= SF/nemysisfreebsdp/${CATEGORIES}/${PORTNAME}/:icons
|
|
|
|
DISTFILES+= cosmic_protector.png:icons \
|
|
|
|
speed.png:icons
|
2014-03-10 16:15:55 +01:00
|
|
|
DESKTOP_ENTRIES+="Cosmic Protector" "Protect the earth from a deadly meteor shower" \
|
|
|
|
"cosmic_protector" "cosmic_protector" "Game;ArcadeGame;" ""
|
|
|
|
DESKTOP_ENTRIES+="SPEED" "Simultaneous Projections Employing an Ensemble of Displays" \
|
|
|
|
"speed" "speed" "Game;ArcadeGame;" ""
|
2013-11-05 19:14:56 +01:00
|
|
|
.else
|
|
|
|
CMAKE_ARGS+=-DWANT_DEMO=off
|
2013-03-17 06:55:42 +01:00
|
|
|
.endif
|
2001-03-04 21:33:24 +01:00
|
|
|
|
2013-11-05 19:14:56 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|lib$${LIB_SUFFIX}/pkgconfig|libdata/pkgconfig|' \
|
|
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
|
|
|
|
${WRKSRC}/addons/audio/pulseaudio.c
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/docs/man/* ${STAGEDIR}${MAN3PREFIX}/man/man3/
|
|
|
|
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@(cd ${DOCSRCDIR2} && ${COPYTREE_SHARE} "src html" ${STAGEDIR}${DOCSDIR2})
|
|
|
|
|
2014-03-13 00:15:19 +01:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2013-11-05 19:14:56 +01:00
|
|
|
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
2014-03-13 00:15:19 +01:00
|
|
|
. for l in ex_acodec ex_acodec_multi ex_audio_chain ex_audio_props ex_audio_simple \
|
2014-03-10 16:15:55 +01:00
|
|
|
ex_bitmap ex_bitmap_flip ex_bitmap_target ex_blend ex_blend2 \
|
|
|
|
ex_blend_bench ex_blend_test ex_blit ex_clip ex_color ex_config ex_convert \
|
|
|
|
ex_dir ex_disable_screensaver ex_display_events ex_display_options \
|
|
|
|
ex_draw ex_draw_bitmap ex_drawpixels ex_dualies ex_expose ex_file_slice \
|
|
|
|
ex_filter ex_font ex_font_justify ex_fs_resize ex_fs_window ex_get_path \
|
|
|
|
ex_gldepth ex_glext ex_haiku ex_icon ex_icon2 ex_joystick_events \
|
|
|
|
ex_joystick_hotplugging ex_kcm_direct ex_keyboard_events ex_keyboard_focus \
|
|
|
|
ex_lines ex_lockbitmap ex_logo ex_membmp ex_memfile ex_mixer_chain \
|
|
|
|
ex_mixer_pp ex_monitorinfo ex_mouse ex_mouse_cursor ex_mouse_events \
|
|
|
|
ex_mouse_focus ex_multisample ex_multiwin ex_native_filechooser ex_nodisplay \
|
|
|
|
ex_noframe ex_opengl ex_opengl_pixel_shader ex_path ex_path_test ex_physfs \
|
|
|
|
ex_pixelformat ex_premulalpha ex_prim ex_resample_test ex_resize ex_resize2 \
|
|
|
|
ex_rotate ex_saw ex_scale ex_stream_file ex_stream_seek ex_subbitmap \
|
|
|
|
ex_synth ex_threads ex_threads2 ex_timedwait ex_timer ex_transform ex_ttf \
|
|
|
|
ex_user_events ex_utf8 ex_vsync ex_warp_mouse ex_windows ex_winfull
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${EXAMPLESDIR}/${l}
|
2014-03-13 00:15:19 +01:00
|
|
|
. endfor
|
|
|
|
.endif
|
2014-03-10 16:15:55 +01:00
|
|
|
|
2013-11-05 19:14:56 +01:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDEMOS} && ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} demos ${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/cosmic_protector ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
${INSTALL_DATA} ${_DISTDIR}/cosmic_protector.png ${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
@(cd ${STAGEDIR}${EXAMPLESDIR}/demos/cosmic_protector && ${CHMOD} 755 cosmic_protector)
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/speed ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${_DISTDIR}/speed.png ${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
@(cd ${STAGEDIR}${EXAMPLESDIR}/demos/speed && ${CHMOD} 755 speed)
|
2014-03-10 16:15:55 +01:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${EXAMPLESDIR}/demos/cosmic_protector/cosmic_protector
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${EXAMPLESDIR}/demos/speed/speed
|
2013-07-26 18:04:47 +02:00
|
|
|
.endif
|
|
|
|
|
2012-09-17 11:28:52 +02:00
|
|
|
.include <bsd.port.mk>
|