blob: 113363a715b3c4d2c5ec24ae17d1d74273a5bd2c (
plain)
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
44
45
46
47
48
49
50
51
|
# New ports collection makefile for: dgd
# Version required: 1.0.37
# Date created: 23 August 1994
# Whom: adam
#
# $Id: Makefile,v 1.35 1996/02/08 00:30:29 adam Exp $
#
DISTNAME= dgd-1.0.37
CATEGORIES= net lang
MASTER_SITES= ftp.lysator.liu.se:/pub/lpmud/drivers/dgd/
#PATCH_SITES= ftp.veda.is:/pub/mud/dgd/patches/
#PATCHFILES= 1.0.9-1.0.9.1.gz
MAINTAINER= adam@veda.is
.ifdef PATCHFILES
.if ${PATCHFILES} != ""
PATCH_PRFX= ${DISTNAME}/
PATCHLEVEL!= echo ${PATCHFILES} | sed 's/^.*\.\(.*\)\.gz$$/\1/'
PKGNAME= ${DISTNAME}.${PATCHLEVEL}
.endif
.endif
WRKSRC= ${WRKDIR}/dgd/src
pre-patch:
@ln -fs .. ${WRKSRC}/dgd
post-patch:
@find -X ${WRKDIR}/dgd -name '*.orig' -print | xargs rm -f
post-build:
@cd ${WRKSRC}; ${MAKE} install
@sed '/^@srcdir/s|\.|${WRKDIR}/\.|' <${PKGDIR}/PLIST >${WRKDIR}/PLIST
do-install:
@tar -C ${WRKDIR} -cf - `grep '^dgd/' pkg/PLIST` \
| tar -C ${PREFIX} -xpf -
.if !defined(DO_PACKAGE)
package:
# @${MAKE} ${.MAKEFLAGS} 'PKG_CMD= cd ${WRKDIR}; ${PKG_CMD}' \
@${MAKE} ${.MAKEFLAGS} 'PKG_ARGS= ${PKG_ARGS} -f ${WRKDIR}/PLIST' \
NO_INSTALL= DO_PACKAGE= package
.else
post-package:
@rm ${INSTALL_COOKIE}
.endif
.include <bsd.port.mk>
|