pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/simh PR pkg/51970: Ethernet (libpcap) suppor...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a1fd49a4bc65
branches:  trunk
changeset: 358947:a1fd49a4bc65
user:      rin <rin%pkgsrc.org@localhost>
date:      Thu Feb 23 10:18:06 2017 +0000

description:
PR pkg/51970: Ethernet (libpcap) support not compiled in

Make sure that /usr/include and /usr/lib${LIBABISUFFIX} always appear in the
search paths for headers and libraries, respectively.

Fix the broken ethernet support (and etc) on platforms like NetBSD.

Thanks hans for his valuable suggestions.

diffstat:

 emulators/simh/Makefile |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (41 lines):

diff -r 8de53b363495 -r a1fd49a4bc65 emulators/simh/Makefile
--- a/emulators/simh/Makefile   Thu Feb 23 09:35:25 2017 +0000
+++ b/emulators/simh/Makefile   Thu Feb 23 10:18:06 2017 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.45 2017/02/15 01:27:00 maya Exp $
+# $NetBSD: Makefile,v 1.46 2017/02/23 10:18:06 rin Exp $
 
 DISTNAME=      simh-4.0.0
 PKGNAME=       simh-4.0.0.20161218
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    emulators
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=simh/}
 GITHUB_PROJECT=        simh
@@ -33,9 +33,6 @@
 CFLAGS.SunOS+= -DBSD_COMP
 LDFLAGS.SunOS+=        -lm
 
-CFLAGS+=               -DUSE_NETWORK
-LDFLAGS+=              -lpcap
-
 INSTALLATION_DIRS=     bin share/simh share/doc/simh
 
 MAKE_FILE=             makefile
@@ -43,12 +40,14 @@
                        ${BUILDLINK_PREFIX.SDL_ttf:Q}/include/SDL:\
                        ${BUILDLINK_PREFIX.libpcap:Q}/include/pcap:\
                        ${BUILDLINK_PREFIX.pcre:Q}/include/pcre:\
-                       ${BUILDLINK_PREFIX.png:Q}/include
+                       ${BUILDLINK_PREFIX.png:Q}/include:\
+                       /usr/include
 LIBRARIES=             ${PREFIX:Q}/lib:\
                        ${BUILDLINK_PREFIX.SDL_ttf:Q}/lib${LIBABISUFFIX}:\
                        ${BUILDLINK_PREFIX.libpcap:Q}/lib${LIBABISUFFIX}:\
                        ${BUILDLINK_PREFIX.pcre:Q}/lib${LIBABISUFFIX}:\
-                       ${BUILDLINK_PREFIX.png:Q}/lib${LIBABISUFFIX}
+                       ${BUILDLINK_PREFIX.png:Q}/lib${LIBABISUFFIX}:\
+                       /usr/lib${LIBABISUFFIX}
 MAKE_ENV+=             INCLUDES=${INCLUDES:Q}
 MAKE_ENV+=             LIBRARIES=${LIBRARIES:Q}
 MAKE_ENV+=             GCC=${CC:Q}



Home | Main Index | Thread Index | Old Index