2001-04-15 23:16:14 -04:00
|
|
|
# New ports collection makefile for: yawmppp
|
|
|
|
# Date created: 07 Mar 2000
|
|
|
|
# Whom: Will Andrews <andrews@technologist.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= yawmppp
|
2001-05-01 13:20:53 -04:00
|
|
|
PORTVERSION= 2.0.2
|
2001-04-15 23:16:14 -04:00
|
|
|
CATEGORIES= comms windowmaker
|
|
|
|
MASTER_SITES= ftp://ftp.seul.org/pub/yawmppp/ \
|
|
|
|
http://www.dcc.unicamp.br/~guazzibe/yawmppp/arch/
|
|
|
|
|
2001-11-14 22:59:42 -05:00
|
|
|
MAINTAINER= pat@FreeBSD.org
|
2001-04-15 23:16:14 -04:00
|
|
|
|
2001-07-29 19:05:45 -04:00
|
|
|
USE_X_PREFIX= yes
|
2001-04-15 23:16:14 -04:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GTK= yes
|
2001-06-10 11:49:47 -04:00
|
|
|
USE_XPM= yes
|
2001-04-15 23:16:14 -04:00
|
|
|
CONFIGURE_ENV= GTKCONFIG="${GTK_CONFIG}" CFLAGS="${CFLAGS} -I${X11BASE}/include"
|
|
|
|
CONFIGURE_ARGS= --x-includes="${X11BASE}/include" \
|
|
|
|
--x-libraries="${X11BASE}/lib"
|
|
|
|
|
|
|
|
MAN1= yawmppp.1x
|
|
|
|
|
2001-08-03 14:05:51 -04:00
|
|
|
pre-patch:
|
|
|
|
@${PERL} -pi -e "s@-g -O2@${CFLAGS}@g; s@-O2 -Wall@${CFLAGS} -Wall@g; \
|
2001-04-15 23:16:14 -04:00
|
|
|
s@-O2@${CFLAGS}@g" ${WRKSRC}/*/Makefile.in \
|
|
|
|
${WRKSRC}/configure ${WRKSRC}/*/*/Makefile.in
|
2001-07-29 19:05:45 -04:00
|
|
|
@${PERL} -pi -e 's!\/usr\/local!${PREFIX}!; \
|
|
|
|
s!/usr/bin!${PREFIX}/bin!' ${WRKSRC}/src/ycommon.c
|
2001-08-03 14:05:51 -04:00
|
|
|
@${PERL} -pi.orig -e 's|/etc/ppp/yagetmodemspeed|${PREFIX}/bin/yagetmodemspeed|' \
|
|
|
|
${WRKSRC}/src/gtksetup/applet.c
|
|
|
|
@${PERL} -pi.orig -e 's|tac|cat|' ${WRKSRC}/src/dockapp/getmodemspeed.c
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.for file in dockapp/yagetmodemspeed dockapp/${PORTNAME} gtklog/${PORTNAME}.log \
|
2001-08-05 14:41:25 -04:00
|
|
|
gtksetup/${PORTNAME}.pref thinppp/${PORTNAME}.thin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/src/${file} ${PREFIX}/bin
|
2001-08-03 14:05:51 -04:00
|
|
|
.endfor
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/src/${PORTNAME}.1x ${PREFIX}/man/man1
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for file in CHANGELOG FAQ README TODO
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
2001-06-15 09:09:30 -04:00
|
|
|
|
2001-04-15 23:16:14 -04:00
|
|
|
.include <bsd.port.mk>
|