| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.6 2013/10/27 20:47:53 joerg Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.7 2013/11/04 11:08:03 jperkin Exp $ |
2 | # | | 2 | # |
3 | # used by editors/emacs24/Makefile | | 3 | # used by editors/emacs24/Makefile |
4 | # used by editors/emacs24-nox11/Makefile | | 4 | # used by editors/emacs24-nox11/Makefile |
5 | | | 5 | |
6 | DISTNAME= emacs-${EMACS_VERSION} | | 6 | DISTNAME= emacs-${EMACS_VERSION} |
7 | PKGNAME?= ${DISTNAME:S/emacs/emacs24/} | | 7 | PKGNAME?= ${DISTNAME:S/emacs/emacs24/} |
8 | CATEGORIES= editors | | 8 | CATEGORIES= editors |
9 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} | | 9 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} |
10 | | | 10 | |
11 | MAINTAINER= pkgsrc-users@NetBSD.org | | 11 | MAINTAINER= pkgsrc-users@NetBSD.org |
12 | HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html | | 12 | HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html |
13 | COMMENT= GNU editing macros (editor) | | 13 | COMMENT= GNU editing macros (editor) |
14 | LICENSE= gnu-gpl-v3 | | 14 | LICENSE= gnu-gpl-v3 |
| @@ -48,26 +48,30 @@ CONF_FILES_PERMS+= /dev/null ${VARBASE}/ | | | @@ -48,26 +48,30 @@ CONF_FILES_PERMS+= /dev/null ${VARBASE}/ |
48 | SPECIAL_PERMS+= libexec/emacs/${EMACS_VERSION}/${MACHINE_GNU_PLATFORM}/update-game-score ${SETGID_GAMES_PERMS} | | 48 | SPECIAL_PERMS+= libexec/emacs/${EMACS_VERSION}/${MACHINE_GNU_PLATFORM}/update-game-score ${SETGID_GAMES_PERMS} |
49 | | | 49 | |
50 | # build PATH in the dumped emacs is not a problem | | 50 | # build PATH in the dumped emacs is not a problem |
51 | CHECK_WRKREF_SKIP+= bin/emacs | | 51 | CHECK_WRKREF_SKIP+= bin/emacs |
52 | CHECK_WRKREF_SKIP+= bin/emacs-${EMACS_VERSION} | | 52 | CHECK_WRKREF_SKIP+= bin/emacs-${EMACS_VERSION} |
53 | | | 53 | |
54 | .include "../../mk/bsd.prefs.mk" | | 54 | .include "../../mk/bsd.prefs.mk" |
55 | | | 55 | |
56 | .if (${OPSYS} == "Darwin") | | 56 | .if (${OPSYS} == "Darwin") |
57 | # Disable address randomization to fix build with Xcode 4.1. This is from | | 57 | # Disable address randomization to fix build with Xcode 4.1. This is from |
58 | # upstream bug #8395. Details in: | | 58 | # upstream bug #8395. Details in: |
59 | # http://lists.gnu.org/archive/html/emacs-bug-tracker/2011-07/msg00445.html | | 59 | # http://lists.gnu.org/archive/html/emacs-bug-tracker/2011-07/msg00445.html |
60 | CFLAGS+= -fno-pie | | 60 | CFLAGS+= -fno-pie |
| | | 61 | # Avoid 'malformed object' errors with older Xcode. |
| | | 62 | . if ${OS_VERSION:R} < 11 |
| | | 63 | INSTALL_UNSTRIPPED= yes |
| | | 64 | . endif |
61 | .endif | | 65 | .endif |
62 | | | 66 | |
63 | .if (${OPSYS} == "NetBSD") && \ | | 67 | .if (${OPSYS} == "NetBSD") && \ |
64 | !exists(/usr/lib/libgcc_s.so) && !exists(/usr/lib/libgcc.a) | | 68 | !exists(/usr/lib/libgcc_s.so) && !exists(/usr/lib/libgcc.a) |
65 | # NetBSD with native Clang doesn't provide libgcc, everything is in libc. | | 69 | # NetBSD with native Clang doesn't provide libgcc, everything is in libc. |
66 | pre-configure: fake-libgcc | | 70 | pre-configure: fake-libgcc |
67 | | | 71 | |
68 | fake-libgcc: | | 72 | fake-libgcc: |
69 | ${AR} q ${BUILDLINK_DIR}/lib/libgcc.a | | 73 | ${AR} q ${BUILDLINK_DIR}/lib/libgcc.a |
70 | .endif | | 74 | .endif |
71 | | | 75 | |
72 | .if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h) | | 76 | .if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h) |
73 | CPPFLAGS+= -DTERMINFO | | 77 | CPPFLAGS+= -DTERMINFO |