blob: 731103ab701069009f0c0e631f127b024bc4f3e2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# New ports collection makefile for: marbles
# Date created: 12 June 2002
# Whom: verm@drunkmonk.net
#
# $FreeBSD$
#
PORTNAME= marbles
PORTVERSION= 1.0.2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= lgames
MAINTAINER= verm@drunkmonk.net
LIB_DEPENDS= SDL-1.1.4:${PORTSDIR}/devel/sdl12
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-profile-path=/var/games
CONFIGURE_ENV= SDL_CONFIG=${LOCALBASE}/bin/sdl11-config
USE_REINPLACE= yes
post-patch:
@${REINPLACE_CMD} -e 's/SDL\///' ${WRKSRC}/src/*.[ch]
@${REINPLACE_CMD} -e 's/^#include "sys\/timeb.h"//' \
${WRKSRC}/src/timer.c
@${REINPLACE_CMD} -e 's/games\/marbles/marbles/g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's/if .*marbles.prfs/if false/' \
${WRKSRC}/src/Makefile.in
post-install:
${INSTALL_DATA} ${WRKSRC}/src/empty.prfs ${DATADIR}
@${CHOWN} root:games ${PREFIX}/bin/marbles
@${CHMOD} g+s ${PREFIX}/bin/marbles
@${SETENV} "PKG_PREFIX=${PREFIX}" \
${SH} pkg-install ${PKGNAME} POST-INSTALL
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/src/manual/* ${DOCSDIR}
.endif
.include <bsd.port.mk>
|