2009-08-10 02:29:51 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2009/08/10 06:31:08 kili Exp $
|
2001-07-16 12:35:16 -04:00
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT-main= C++ wrapper for the Simple DirectMedia Layer
|
|
|
|
COMMENT-docs= SDLmm documentation
|
2001-07-16 12:35:16 -04:00
|
|
|
|
2001-09-01 23:41:30 -04:00
|
|
|
VERSION= 0.1.8
|
2001-07-16 12:35:16 -04:00
|
|
|
DISTNAME= SDLmm-${VERSION}
|
2009-08-10 02:29:51 -04:00
|
|
|
PKGNAME-main= sdlmm-${VERSION}p8
|
2006-11-25 14:12:08 -05:00
|
|
|
PKGNAME-docs= sdlmm-doc-${VERSION}p3
|
|
|
|
SHARED_LIBS += SDLmm 9.0 # .8.0
|
2001-07-16 12:35:16 -04:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://sdlmm.sourceforge.net/
|
|
|
|
|
|
|
|
MAINTAINER= Peter Valchev <pvalchev@openbsd.org>
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2002-05-13 14:50:36 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sdlmm/}
|
2001-07-16 12:35:16 -04:00
|
|
|
|
2006-11-25 14:12:08 -05:00
|
|
|
MULTI_PACKAGES= -main -docs
|
2004-07-19 06:58:17 -04:00
|
|
|
|
2006-11-25 14:12:08 -05:00
|
|
|
LIB_DEPENDS-main= SDL::devel/sdl
|
2009-08-10 02:29:51 -04:00
|
|
|
WANTLIB-main= X11 Xau Xdmcp Xext Xrandr Xrender iconv m pthread-stubs sndio \
|
|
|
|
stdc++ usbhid xcb
|
2006-11-25 14:12:08 -05:00
|
|
|
PKG_ARCH-docs= *
|
2001-07-16 12:35:16 -04:00
|
|
|
|
|
|
|
USE_X11= Yes
|
2006-01-06 04:07:58 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2001-07-16 12:35:16 -04:00
|
|
|
|
2004-07-19 06:58:17 -04:00
|
|
|
post-install:
|
2006-11-25 14:12:08 -05:00
|
|
|
@cd ${WRKSRC}/docs/html && \
|
2004-07-19 06:58:17 -04:00
|
|
|
rm -f Makefile* htmlfiles && \
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sdlmm && \
|
2006-11-25 14:12:08 -05:00
|
|
|
for A in *; do ${INSTALL_DATA} $$A ${PREFIX}/share/doc/sdlmm/; done
|
2004-07-19 06:58:17 -04:00
|
|
|
|
2001-07-16 12:35:16 -04:00
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
|
2004-01-02 13:06:32 -05:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
USE_GCC3?= No
|
|
|
|
|
|
|
|
.if ${USE_GCC3:L} == "yes"
|
|
|
|
CONFIGURE_ENV= LIBS="${LIBS} -lstdc++ -lm"
|
|
|
|
.else
|
2001-07-16 12:35:16 -04:00
|
|
|
CONFIGURE_ENV= LIBS="${LIBS} -lstdc++"
|
2004-01-02 13:06:32 -05:00
|
|
|
.endif
|
2001-07-16 12:35:16 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|