2000-08-03 06:05:48 +02:00
|
|
|
# New ports collection makefile for: xswallow
|
|
|
|
# Date created: 1 May 2000
|
|
|
|
# Whom: Conrad Sabatier <conrads@home.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xswallow
|
2000-12-10 18:46:44 +01:00
|
|
|
PORTVERSION= 1.0.18
|
2000-08-03 06:05:48 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://www.csn.ul.ie/~caolan/publink/X/
|
2000-12-18 00:48:05 +01:00
|
|
|
DISTNAME= XswallowSource-${PORTVERSION}
|
2000-08-03 06:05:48 +02:00
|
|
|
|
|
|
|
MAINTAINER= conrads@home.com
|
2003-02-21 15:08:24 +01:00
|
|
|
COMMENT= A general-purpose, user-configurable plugin for Netscape
|
2000-08-03 06:05:48 +02:00
|
|
|
|
2000-09-16 12:31:59 +02:00
|
|
|
USE_XLIB= yes
|
2000-12-10 18:46:44 +01:00
|
|
|
WRKSRC= ${WRKDIR}/xswallow/xswallow
|
2000-08-03 06:05:48 +02:00
|
|
|
|
|
|
|
PORTOBJFORMAT= aout
|
|
|
|
|
2002-10-20 12:12:39 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ( ${OSVERSION} >= 500040 )
|
|
|
|
IGNORE= "a.out binaries cannot be built on 5.0"
|
|
|
|
.endif
|
|
|
|
|
2000-08-03 06:05:48 +02:00
|
|
|
#can't use ${INSTALL_PROGRAM} with aout binaries, do strip separately
|
|
|
|
|
|
|
|
STRIP= /usr/libexec/aout/strip
|
|
|
|
|
|
|
|
#Makefile in distribution doesn't link properly
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} -o xswallow.so -aout \
|
|
|
|
-shared -nostdlib -DXP_UNIX -I../include \
|
|
|
|
-I${X11BASE}/include -L/usr/lib/compat/aout -lgcc \
|
|
|
|
UnixShell.c stubs.c
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/lib/netscape/plugins
|
|
|
|
${MKDIR} ${PREFIX}/share/examples/xswallow
|
|
|
|
|
|
|
|
${INSTALL} ${COPY} ${WRKSRC}/xswallow.so \
|
|
|
|
${PREFIX}/lib/netscape/plugins
|
|
|
|
${STRIP} ${PREFIX}/lib/netscape/plugins/xswallow.so
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/xswallow.conf \
|
|
|
|
${PREFIX}/share/examples/xswallow
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/xswallow
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/xswallow
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@echo
|
|
|
|
@echo XSwallow plugin was installed in ${PREFIX}/lib/netscape/plugins.
|
|
|
|
@echo If your Netscape installation uses a different location,
|
|
|
|
@echo then move xswallow.so from the above location to there.
|
|
|
|
@echo
|
|
|
|
@echo You should copy the sample configuration file
|
|
|
|
@echo ${PREFIX}/share/examples/xswallow/xswallow.conf
|
|
|
|
@echo to your ~/.netscape directory.
|
|
|
|
@echo
|
|
|
|
@echo More documentation and some pages for testing your
|
|
|
|
@echo configuration are available at
|
|
|
|
@echo
|
|
|
|
@echo WWW: http://skynet.csn.ul.ie/~caolan/docs/XSwallow.html
|
|
|
|
@echo
|
|
|
|
|
2002-10-20 12:12:39 +02:00
|
|
|
.include <bsd.port.post.mk>
|