1 # $NetBSD: Makefile,v 1.29 2008/06/12 02:14:21 joerg Exp $
3 DISTNAME= allegro-4.2.2
5 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=alleg/}
7 MAINTAINER= pkgsrc-users@NetBSD.org
8 HOMEPAGE= http://alleg.sourceforge.net/
9 COMMENT= Allegro game programming library
11 PKG_DESTDIR_SUPPORT= user-destdir
15 USE_TOOLS+= gmake makeinfo
19 BUILD_TARGET= # there is no 'all' target for some reason
21 INSTALL_TARGET= install install-info
23 # NetBSD's OSS midi emulation is non-existent.
24 CONFIGURE_ARGS+= --disable-ossmidi
28 .if !empty(INSTALL_UNSTRIPPED:Uno:M[Yy][Ee][Ss])
29 CONFIGURE_ARGS+= allegro_cv_prog_ld_s=no
33 SUBST_STAGE.oss= post-patch
34 SUBST_FILES.oss= src/unix/uoss.c setup/setup.c
35 SUBST_SED.oss= -e "s,/dev/dsp,${DEVOSSAUDIO},g"
36 SUBST_MESSAGE.oss= Fixing hardcoded audio device.
39 SUBST_STAGE.path= post-patch
40 SUBST_FILES.path= src/unix/umodules.c src/unix/usystem.c
41 SUBST_SED.path= -e "s,@@PREFIX@@,${PREFIX},g"
42 SUBST_MESSAGE.path= Fixing hardcoded path.
44 BUILDLINK_DEPMETHOD.libXt?= build
46 .include "../../mk/oss.buildlink3.mk"
47 .include "../../mk/pthread.buildlink3.mk"
48 .include "../../x11/libX11/buildlink3.mk"
49 .include "../../x11/libXcursor/buildlink3.mk"
50 .include "../../x11/libXext/buildlink3.mk"
51 .include "../../x11/libXpm/buildlink3.mk"
52 .include "../../x11/libXt/buildlink3.mk"
53 .include "../../x11/libXxf86dga/buildlink3.mk"
54 .include "../../x11/libXxf86vm/buildlink3.mk"
55 .include "../../x11/xextproto/buildlink3.mk"
56 .include "../../mk/bsd.pkg.mk"