1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/emulators/bsvc/Makefile
Satoshi Asami d730854fd0 Do not write anything to ${PATCHDIR} by doing the awk trick to
the patched file (Makefile.common) in post-patch, instead of
the patch itself (${FILESDIR}/patch-aa.in) in pre-patch.
1998-10-06 05:18:00 +00:00

51 lines
1.2 KiB
Makefile

# New ports collection Makefile for: bsvc
# Version required: 2.0
# Date created: 03-Mar-1997
# Whom: tenser
#
# $Id: Makefile,v 1.7 1998/08/07 23:56:18 asami Exp $
#
DISTNAME= bsvc-2.0
CATEGORIES= emulators tk41
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= system/emulators
EXTRACT_SUFX= -src.tar.z
MAINTAINER= tenser@spitfire.ecsel.psu.edu
RUN_DEPENDS= wish4.1:${PORTSDIR}/x11-toolkits/tk41
WRKSRC= ${WRKDIR}/${DISTNAME}/src
WISH= wish4.1
pre-patch:
@awk ' \
{ \
if (/^## Makefile/) { \
print "## Makefile.FreeBSD - System Dependent Makefile for FreeBSD" \
} else { \
print \
} \
}' < ${WRKSRC}/Makefile.ULTRIX > ${WRKSRC}/Makefile
post-patch:
@awk ' \
{ \
if (/PROJECT_BASE/ && /AWK_CHANGE_ME/) { \
print "PROJECT_BASE='"${WRKDIR}/${DISTNAME}"'" \
} else if (/INSTALL_DIR/ && /AWK_CHANGE_ME/) { \
print "INSTALL_DIR='"${PREFIX}/bin"'" \
} else if (/LIB_DIR/ && /AWK_CHANGE_ME/) { \
print "LIB_DIR ='"${PREFIX}/lib/bsvc"'" \
} else if (/WISH/ && /AWK_CHANGE_ME/) { \
print "WISH='"${WISH}"'" \
} else { \
print \
} \
}' < ${WRKSRC}/Makefile.common > ${WRKSRC}/Makefile.common.tmp
@${MV} -f ${WRKSRC}/Makefile.common.tmp ${WRKSRC}/Makefile.common
.include <bsd.port.mk>