mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
a4ebe4cba9
2: convert to new LIB_DEPENDS format.
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# Created by: Jean-Yves Lefort <jylefort@brutele.be>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= super_methane_brothers
|
|
PORTVERSION= 1.5.1
|
|
PORTREVISION= 3
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/methane/Methane%20Stable/Methane%20V${PORTVERSION}
|
|
DISTNAME= methane-${PORTVERSION}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Port of the Amiga platform game of the same name
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libclan23Core.so:${PORTSDIR}/devel/clanlib \
|
|
libexecinfo.so:${PORTSDIR}/devel/libexecinfo
|
|
|
|
USES= gmake pkgconfig
|
|
USE_GCC= yes
|
|
USE_GL= glu
|
|
MAKE_ENV= METHANE_FLAGS="${CPPFLAGS}" METHANE_LIBS="${LDFLAGS}"
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lexecinfo
|
|
|
|
PORTDOCS= *
|
|
PLIST_FILES= bin/methane
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|-2.2|-2.3|g ; \
|
|
s|FLAGS =|FLAGS +=| ; \
|
|
s|LIBS =|LIBS +=| ; \
|
|
s|g++|$${CXX}| ; \
|
|
s|gcc|$${CXX}|' ${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
(cd ${WRKDIR}/${DISTNAME} && ${INSTALL_PROGRAM} methane ${STAGEDIR}${PREFIX}/bin)
|
|
${CHGRP} games ${STAGEDIR}${PREFIX}/bin/methane
|
|
${CHMOD} g+s ${STAGEDIR}${PREFIX}/bin/methane
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
@(cd ${WRKDIR}/${DISTNAME}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
|
.endif
|
|
@${SETENV} PKG_PREFIX=${PREFIX} \
|
|
${SH} ${PKGREQ} ${PKGNAME} POST-INSTALL
|
|
|
|
.include <bsd.port.mk>
|