60108094da
- sky is blue, grass is green and examples get installed under %D/share/examples/prognam/, stating the obvious doesn't help, remove MESSAGE Stuart, whatever you were smoking at the time of the import, I want some!
61 lines
1.7 KiB
Makefile
61 lines
1.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.2 2009/06/06 03:22:05 ajacoutot Exp $
|
|
|
|
SHARED_ONLY = Yes
|
|
COMMENT = Simple DirectMedia Layer for Perl
|
|
HOMEPAGE = http://sdlperl.org/
|
|
|
|
MODULES = cpan
|
|
VER = 2.1.3
|
|
DISTNAME = SDL_Perl-${VER}
|
|
PKGNAME = p5-SDL-${VER}p0
|
|
CATEGORIES = devel graphics
|
|
CPAN_AUTHOR = DGOEHRIG
|
|
|
|
MAINTAINER = James Wright <jamesw@bsdhosting.co.za>
|
|
|
|
# GPLv2
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
WANTLIB += GL GLU SDL jpeg png pthread
|
|
|
|
RUN_DEPENDS = ::devel/p5-YAML
|
|
BUILD_DEPENDS = ${RUN_DEPENDS}
|
|
LIB_DEPENDS = SDL_gfx::devel/sdl-gfx \
|
|
SDL_image::devel/sdl-image \
|
|
SDL_mixer::devel/sdl-mixer \
|
|
SDL_net::devel/sdl-net \
|
|
SDL_ttf::devel/sdl-ttf \
|
|
smpeg::devel/smpeg
|
|
|
|
CONFIGURE_STYLE = perl modbuild
|
|
|
|
# Set AUDIODEVICE to aucat socket if it is in use
|
|
REGRESS_IS_INTERACTIVE =Yes
|
|
REGRESS_FLAGS = AUDIODEVICE="${AUDIODEVICE}"
|
|
|
|
EXAMPLE_DIR = ${PREFIX}/share/examples/p5-SDL
|
|
EXAMPLE_LOC = ${WRKSRC}/test
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} -c ${FILESDIR}/Openbsd.pm \
|
|
${WRKSRC}/make/lib/SDL/Build/Openbsd.pm
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} -d ${EXAMPLE_DIR}/data
|
|
${INSTALL_DATA_DIR} -d ${EXAMPLE_DIR}/OpenGL/tutorial/Data
|
|
${INSTALL_SCRIPT} ${EXAMPLE_LOC}/*.pl ${EXAMPLE_DIR}/
|
|
${INSTALL_DATA} ${EXAMPLE_LOC}/README ${EXAMPLE_DIR}/
|
|
${INSTALL_DATA} ${EXAMPLE_LOC}/OpenGL/README ${EXAMPLE_DIR}/OpenGL
|
|
${INSTALL_SCRIPT} ${EXAMPLE_LOC}/OpenGL/*.pl \
|
|
${EXAMPLE_DIR}/OpenGL/tutorial/
|
|
${INSTALL_SCRIPT} ${EXAMPLE_LOC}/OpenGL/tutorial/*.pl \
|
|
${EXAMPLE_DIR}/OpenGL/tutorial/
|
|
${INSTALL_DATA} ${EXAMPLE_LOC}/data/* ${EXAMPLE_DIR}/data
|
|
${INSTALL_DATA} ${EXAMPLE_LOC}/OpenGL/tutorial/Data/* \
|
|
${EXAMPLE_DIR}/OpenGL/tutorial/Data/
|
|
|
|
.include <bsd.port.mk>
|