mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
d4f0d0048a
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}. - Bump PORTREVISION for ports intalling files in ${X11BASE}.
70 lines
2.0 KiB
Makefile
70 lines
2.0 KiB
Makefile
# ports collection makefile for: linrad
|
|
# Date created: 7 July 2004
|
|
# Whom: db
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= linrad
|
|
PORTVERSION= 2.28
|
|
PORTREVISION= 1
|
|
CATEGORIES= comms
|
|
MASTER_SITES= http://www.nitehawk.com/sm5bsz/linuxdsp/archive/\
|
|
http://g7rau.demon.co.uk/sm5bsz/linuxdsp/archive/\
|
|
http://www.sm5bsz.com/linuxdsp/archive/
|
|
DISTNAME= lir02-28
|
|
EXTRACT_SUFX= .tbz
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= db@FreeBSD.org
|
|
COMMENT= Amateur Radio DSP utility (SDR)
|
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-0${PORTVERSION}
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --sysconfdir=${PREFIX} --mandir=${PREFIX}/man
|
|
USE_GMAKE= yes
|
|
USE_BZIP2= yes
|
|
ALL_TARGET= xlinrad
|
|
USE_X_PREFIX= yes
|
|
ONLY_FOR_ARCHS= i386
|
|
X11_PATCHFILES= Makefile.in help.c xmain.c
|
|
LINRAD_DOCFILES= z_APM.txt z_BUFFERS.txt z_CALIBRATE.txt \
|
|
z_COPYRIGHT.txt z_GIFINFO.txt \
|
|
z_MOUSE.txt z_NETWORK.txt \
|
|
z_PARALLEL_PORT.txt z_SETTINGS.txt \
|
|
z_USERS_EXTRA.txt z_USERS_HWARE.txt
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
-e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}/|' \
|
|
${WRKSRC}/help.c
|
|
.for f in ${X11_PATCHFILES}
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/${f}
|
|
.endfor
|
|
|
|
do-install:
|
|
${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/errors.lir ${DATADIR}/errors.lir
|
|
${INSTALL_DATA} ${WRKSRC}/help.lir ${DATADIR}/help.lir
|
|
${INSTALL_SCRIPT} -m04555 ${FILESDIR}/linrad ${PREFIX}/bin/linrad
|
|
# Some day we may want the svga version as well.
|
|
# ${INSTALL_PROGRAM} -m04555 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}.svga
|
|
${INSTALL_PROGRAM} -m04555 ${WRKSRC}/x${PORTNAME} ${PREFIX}/bin/x${PORTNAME}
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for f in ${LINRAD_DOCFILES}
|
|
@${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}/$f
|
|
.endfor
|
|
@${ECHO} ""
|
|
@${ECHO} "linrad docs installed in ${DOCSDIR}"
|
|
@${ECHO} ""
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|