View | Details | Raw Unified | Return to bug 106031
Collapse All | Expand All

(-)/usr/home/db/ports/tlf/Makefile (-1 / +13 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	tlf
8
PORTNAME=	tlf
9
PORTVERSION=	0.9.30
9
PORTVERSION=	0.9.30
10
PORTREVISION=	1
10
CATEGORIES=	comms hamradio
11
CATEGORIES=	comms hamradio
11
MASTER_SITES=	http://www.wwns.com/tlf/ \
12
MASTER_SITES=	http://www.wwns.com/tlf/ \
12
		http://sharon.esrac.ele.tue.nl/pub/linux/ham/tlf/
13
		http://sharon.esrac.ele.tue.nl/pub/linux/ham/tlf/
Lines 15-23 Link Here
15
MAINTAINER=	db@db.net
16
MAINTAINER=	db@db.net
16
COMMENT=	Amateur Radio curses based logging program
17
COMMENT=	Amateur Radio curses based logging program
17
18
19
USE_AUTOTOOLS=	autoconf:259 libtool:15 aclocal:19 automake:19
18
GNU_CONFIGURE=	yes
20
GNU_CONFIGURE=	yes
21
CONFIGURE_ARGS=	--includedir="${LOCALBASE}/include" \
22
		--libdir="${LOCALBASE}/lib"
19
CONFIGURE_ENV=	LDFLAGS="${PTHREAD_LIBS}"
23
CONFIGURE_ENV=	LDFLAGS="${PTHREAD_LIBS}"
24
OPTIONS=	HAMLIB "Use hamlib" ON
20
25
21
MAN1=		tlf.1
26
MAN1=		tlf.1
22
27
23
.include <bsd.port.mk>
28
.include <bsd.port.pre.mk>
29
30
.if defined(WITH_HAMLIB)
31
LIB_DEPENDS+=	hamlib:${PORTSDIR}/comms/hamlib
32
CONFIGURE_ARGS+=	--enable-hamlib
33
.endif
34
35
.include <bsd.port.post.mk>
(-)/usr/home/db/ports/tlf/files/patch-configure.in (+30 lines)
Line 0 Link Here
1
--- configure.in.orig	Wed Apr  5 03:22:01 2006
2
+++ configure.in	Tue Nov 21 14:23:37 2006
3
@@ -8,6 +8,10 @@
4
 AC_PROG_INSTALL
5
 AC_PROG_AWK
6
 
7
+CPPFLAGS="-I${includedir}"
8
+LDFLAGS="-L${libdir}"
9
+LIBS="-L${libdir} ${LIBS}"
10
+
11
 # Checks for header files.
12
 AC_HEADER_STDC
13
 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h unistd.h])
14
@@ -22,6 +26,7 @@
15
 #AC_CHECK_LIB(hamlib,main,,AC_MSG_ERROR([Hamradio control libraries (hamlib) not found! ABORTED!]))
16
 #AC_CHECK_HEADERS(hamlib/rig.h hamlib/riglist.h,,AC_MSG_ERROR([hamlib header(s) not found! ABORTED]))
17
 
18
+
19
 dnl Check if we want to link the Hamradio control libraries (hamlib)
20
 AC_ARG_ENABLE([hamlib],
21
 [  --enable-hamlib   Add support for hamradio control libraries],
22
@@ -33,7 +38,7 @@
23
 [wanthamlib=false])
24
 
25
 if test "x${wanthamlib}" != "xfalse"; then
26
-	AC_CHECK_LIB(hamlib,main,,AC_MSG_ERROR([Hamradio control libraries not found...]))
27
+	AC_CHECK_LIB(hamlib,rig_init,,AC_MSG_ERROR([Hamradio control libraries not found...]))
28
 	AC_CHECK_HEADERS(hamlib/rig.h,,AC_MSG_ERROR([Hamlib headers not found...]))
29
 	AC_DEFINE([WANT_HAMLIB], 1, [Want Hamlib])
30
 	echo "enabling hamlib support"

Return to bug 106031