1997-03-05 08:30:54 +00:00
|
|
|
# New ports collection Makefile for: bsvc
|
|
|
|
# Version required: 2.0
|
1998-04-04 13:14:19 +00:00
|
|
|
# Date created: 03-Mar-1997
|
|
|
|
# Whom: tenser
|
1997-03-05 08:30:54 +00:00
|
|
|
#
|
1998-10-06 05:18:00 +00:00
|
|
|
# $Id: Makefile,v 1.7 1998/08/07 23:56:18 asami Exp $
|
1997-03-05 08:30:54 +00:00
|
|
|
#
|
|
|
|
|
1998-04-05 07:30:56 +00:00
|
|
|
DISTNAME= bsvc-2.0
|
1997-04-20 13:20:00 +00:00
|
|
|
CATEGORIES= emulators tk41
|
1998-04-04 13:14:19 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
|
|
MASTER_SITE_SUBDIR= system/emulators
|
1998-04-05 07:30:56 +00:00
|
|
|
EXTRACT_SUFX= -src.tar.z
|
1997-03-05 08:30:54 +00:00
|
|
|
|
|
|
|
MAINTAINER= tenser@spitfire.ecsel.psu.edu
|
|
|
|
|
1998-08-07 23:56:56 +00:00
|
|
|
RUN_DEPENDS= wish4.1:${PORTSDIR}/x11-toolkits/tk41
|
1997-03-05 08:30:54 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
|
|
|
|
WISH= wish4.1
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@awk ' \
|
|
|
|
{ \
|
1998-10-06 05:18:00 +00:00
|
|
|
if (/^## Makefile/) { \
|
|
|
|
print "## Makefile.FreeBSD - System Dependent Makefile for FreeBSD" \
|
1997-03-05 08:30:54 +00:00
|
|
|
} else { \
|
|
|
|
print \
|
|
|
|
} \
|
1998-10-06 05:18:00 +00:00
|
|
|
}' < ${WRKSRC}/Makefile.ULTRIX > ${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
post-patch:
|
1997-03-05 08:30:54 +00:00
|
|
|
@awk ' \
|
|
|
|
{ \
|
1998-10-06 05:18:00 +00:00
|
|
|
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}"'" \
|
1997-03-05 08:30:54 +00:00
|
|
|
} else { \
|
|
|
|
print \
|
|
|
|
} \
|
1998-10-06 05:18:00 +00:00
|
|
|
}' < ${WRKSRC}/Makefile.common > ${WRKSRC}/Makefile.common.tmp
|
|
|
|
@${MV} -f ${WRKSRC}/Makefile.common.tmp ${WRKSRC}/Makefile.common
|
1997-03-06 11:39:52 +00:00
|
|
|
|
1997-03-05 08:30:54 +00:00
|
|
|
.include <bsd.port.mk>
|