Lines 16-38
Link Here
|
16 |
MAINTAINER?= ports@FreeBSD.org |
16 |
MAINTAINER?= ports@FreeBSD.org |
17 |
COMMENT?= This port tracks the stable version of the XEmacs text editor |
17 |
COMMENT?= This port tracks the stable version of the XEmacs text editor |
18 |
|
18 |
|
|
|
19 |
XEMACS_REL= 21.4 |
20 |
XEMACS_VER= 21.4.17 |
21 |
XEMACS_ARCH= ${CONFIGURE_TARGET} |
22 |
|
19 |
NOT_FOR_ARCHS= sparc64 |
23 |
NOT_FOR_ARCHS= sparc64 |
20 |
|
24 |
|
21 |
RUN_DEPENDS+= ${LOCALBASE}/lib/xemacs/xemacs-packages/etc/enriched.doc:${PORTSDIR}/editors/xemacs-packages |
25 |
RUN_DEPENDS+= ${LOCALBASE}/lib/xemacs/xemacs-packages/etc/enriched.doc:${PORTSDIR}/editors/xemacs-packages |
22 |
.if !defined(WITHOUT_X11) |
|
|
23 |
LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg \ |
24 |
png.5:${PORTSDIR}/graphics/png \ |
25 |
tiff.4:${PORTSDIR}/graphics/tiff \ |
26 |
compface.1:${PORTSDIR}/mail/faces |
27 |
USE_XLIB= yes |
28 |
USE_XPM= yes |
29 |
.endif |
30 |
USE_BZIP2= yes |
31 |
|
32 |
XEMACS_REL= 21.4 |
33 |
XEMACS_VER= 21.4.16 |
34 |
XEMACS_ARCH= ${CONFIGURE_TARGET} |
35 |
|
26 |
|
|
|
27 |
USE_BZIP2= yes |
36 |
STRIP= |
28 |
STRIP= |
37 |
USE_AUTOCONF_VER=213 |
29 |
USE_AUTOCONF_VER=213 |
38 |
CONFIGURE_TARGET=${MACHINE_ARCH}--freebsd |
30 |
CONFIGURE_TARGET=${MACHINE_ARCH}--freebsd |
Lines 44-50
Link Here
|
44 |
--with-ldap=no \ |
36 |
--with-ldap=no \ |
45 |
--with-site-lisp \ |
37 |
--with-site-lisp \ |
46 |
--with-database=berkdb \ |
38 |
--with-database=berkdb \ |
47 |
${WITH_XFACE} ${WITH_DIALOGS} ${WITH_OFFIX} ${WITH_GTK} |
39 |
${WITH_SCROLLBARS} ${WITH_DIALOGS} ${WITH_WIDGETS} \ |
|
|
40 |
${WITH_XFACE} ${WITH_OFFIX} |
48 |
MAKE_ARGS= prefix=${PREFIX} |
41 |
MAKE_ARGS= prefix=${PREFIX} |
49 |
MAN1= ctags.1 etags.1 gnuattach.1 gnuclient.1 gnudoit.1 \ |
42 |
MAN1= ctags.1 etags.1 gnuattach.1 gnuclient.1 gnudoit.1 \ |
50 |
gnuserv.1 xemacs.1 |
43 |
gnuserv.1 xemacs.1 |
Lines 56-141
Link Here
|
56 |
|
49 |
|
57 |
# Undump and malloc do not behave on amd64 at the moment |
50 |
# Undump and malloc do not behave on amd64 at the moment |
58 |
.if ${ARCH} == amd64 |
51 |
.if ${ARCH} == amd64 |
59 |
CONFIGURE_ARGS+=--with-system-malloc --pdump |
52 |
CONFIGURE_ARGS+= --with-system-malloc --pdump |
60 |
.endif |
53 |
.endif |
61 |
|
54 |
|
62 |
.if exists(${X11BASE}/lib/libXm.so) |
55 |
.if !defined(WITHOUT_X11) |
|
|
56 |
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png \ |
57 |
jpeg.9:${PORTSDIR}/graphics/jpeg \ |
58 |
tiff.4:${PORTSDIR}/graphics/tiff \ |
59 |
compface.1:${PORTSDIR}/mail/faces |
60 |
CONFIGURE_ARGS+= --with-png --with-jpeg --with-tiff |
61 |
USE_XLIB= yes |
62 |
USE_XPM= yes |
63 |
.if !defined(WITHOUT_MOTIF) && !defined(MOTIF_STATIC) |
63 |
USE_MOTIF= yes |
64 |
USE_MOTIF= yes |
64 |
HAVE_MOTIF= yes |
65 |
WITH_SCROLLBARS= --with-scrollbars=motif |
65 |
.endif |
66 |
WITH_DIALOGS= --with-dialogs=motif |
66 |
|
67 |
WITH_WIDGETS= --with-widgets=motif |
67 |
pre-fetch: |
68 |
.else |
68 |
#.if !defined(WANT_GTK) |
69 |
WITH_SCROLLBARS= --with-scrollbars=athena |
69 |
# @${ECHO_MSG} "If you want to use GTK, please set the environment variable WANT_GTK " |
70 |
WITH_DIALOGS= --with-dialogs=athena |
70 |
# @${ECHO_MSG} "and recompile." |
71 |
WITH_WIDGETS= --with-widgets=athena |
71 |
#.endif |
72 |
.if defined(WITH_XAW3D) |
72 |
.if defined(HAVE_MOTIF) |
73 |
LIB_DEPENDS+= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d |
73 |
.if !defined(MOTIF_STATIC) |
74 |
CONFIGURE_ARGS+= --with-athena=3d |
74 |
@${ECHO_MSG} "" |
|
|
75 |
@${ECHO_MSG} "If your MOTIF library is actually lesstif, you might occasionally" |
76 |
@${ECHO_MSG} "experience locked-up frames." |
77 |
@${ECHO_MSG} "In this case, set the environment variable MOTIF_STATIC and recompile, " |
78 |
@${ECHO_MSG} "which will force the use of athena widgets for dialogs." |
79 |
.endif |
75 |
.endif |
80 |
.if !defined(WITHOUT_X11) |
|
|
81 |
@${ECHO_MSG} "" |
82 |
@${ECHO_MSG} "Set the environment variable WITHOUT_X11 if you " |
83 |
@${ECHO_MSG} "do not want to use X11." |
84 |
CONFIG_ARGS+= --with-png=yes --with-tiff=yes |
85 |
.endif |
76 |
.endif |
86 |
.if defined(WITHOUT_X11) |
77 |
.else |
87 |
CONFIGURE_ARGS+= --without-x11 |
78 |
CONFIGURE_ARGS+= --without-x11 |
88 |
.endif |
79 |
.endif |
89 |
|
80 |
|
90 |
# hack to avoid shipping binaries linked with Motif |
81 |
pre-patch: |
91 |
.if defined(MOTIF_STATIC) |
82 |
.if !defined(WITHOUT_X11) |
92 |
WITH_DIALOGS= --with-dialogs=athena |
83 |
.if !defined(WITHOUT_MOTIF) && !defined(MOTIF_STATIC) |
|
|
84 |
@${ECHO_MSG} "" |
85 |
@${ECHO_MSG} "If your MOTIF library is lesstif you might occasionally" |
86 |
@${ECHO_MSG} "experience locked-up frames." |
87 |
@${ECHO_MSG} "In this case, set the environment variable WITHOUT_MOTIF" |
88 |
@${ECHO_MSG} "and recompile, which will force the use of athena for" |
89 |
@${ECHO_MSG} "scrollbars, dialogs and widgets." |
93 |
.endif |
90 |
.endif |
94 |
|
91 |
@${ECHO_MSG} "" |
95 |
.if defined(WITH_XAW3D) |
92 |
@${ECHO_MSG} "Set the environment variable WITHOUT_X11 if you do not" |
96 |
LIB_DEPENDS+= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d |
93 |
@${ECHO_MSG} "want to use X11." |
97 |
.endif |
94 |
.endif |
98 |
|
95 |
|
99 |
#.if defined(WANT_GTK) |
|
|
100 |
#USE_GNOME= gtk20 |
101 |
#MAKE_ARGS+= X_LIBS="$(X_LIBS) -lXt" |
102 |
#WITH_GTK= --with-gtk=yes \ |
103 |
# --with-xpm=no |
104 |
#USE_XPM= no |
105 |
#.endif |
106 |
|
107 |
# Drop faces (libcompface) and offix (libDnd) if building package, |
96 |
# Drop faces (libcompface) and offix (libDnd) if building package, |
108 |
# autodetect otherwise |
97 |
# autodetect otherwise |
109 |
.if defined(PACKAGE_BUILDING) |
98 |
.if defined(PACKAGE_BUILDING) |
110 |
WITH_XFACE?= --with-xface=no |
99 |
WITH_XFACE?= --with-xface=no |
111 |
WITH_OFFIX?= --with-offix=no |
100 |
WITH_OFFIX?= --with-offix=no |
112 |
.endif |
101 |
.endif |
113 |
.endif |
|
|
114 |
|
115 |
post-patch: |
116 |
@${RM} ${WRKSRC}/src/s/freebsd.h.orig |
117 |
|
102 |
|
118 |
# fix .so references in a few man pages |
103 |
# fix .so references in a few man pages |
119 |
pre-configure:: |
104 |
pre-configure:: |
120 |
.for file in etc/ctags.1 etc/gnuattach.1 etc/gnuclient.1 etc/gnudoit.1 |
105 |
.for f in etc/ctags.1 etc/gnuattach.1 etc/gnuclient.1 etc/gnudoit.1 |
121 |
@${SED} -e 's/\.1/&.gz/' ${WRKSRC}/${file} > ${WRKDIR}/tmp_zot |
106 |
@${SED} -e 's/\.1/&.gz/' ${WRKSRC}/${f} > ${WRKDIR}/tmp_zot |
122 |
@${MV} ${WRKDIR}/tmp_zot ${WRKSRC}/${file} |
107 |
@${MV} ${WRKDIR}/tmp_zot ${WRKSRC}/${f} |
123 |
.endfor |
108 |
.endfor |
124 |
|
109 |
|
125 |
post-install:: |
110 |
post-install:: |
126 |
.for file in b2m ctags ellcc etags gnuclient xemacs-${XEMACS_VER} |
111 |
.for f in b2m ctags ellcc etags gnuclient xemacs-${XEMACS_VER} |
127 |
${STRIP_CMD} ${PREFIX}/bin/${file} |
112 |
${STRIP_CMD} ${PREFIX}/bin/${f} |
128 |
.endfor |
113 |
.endfor |
129 |
# For some reason install no longer makes ${PREFIX}/lib/xemacs/site-lisp. |
114 |
# For some reason install no longer makes ${PREFIX}/lib/xemacs/site-lisp. |
130 |
# Do what PLIST does for pkg_add. |
115 |
# Do what PLIST does for pkg_add. |
131 |
${MKDIR} ${PREFIX}/lib/xemacs/site-lisp |
116 |
${MKDIR} ${PREFIX}/lib/xemacs/site-lisp |
132 |
${CHMOD} 755 ${PREFIX}/lib/xemacs/site-lisp |
117 |
${CHMOD} 755 ${PREFIX}/lib/xemacs/site-lisp |
133 |
${RM} -f ${PREFIX}/bin/send-pr |
118 |
${RM} -f ${PREFIX}/bin/send-pr |
134 |
#.if defined(WANT_GTK) |
|
|
135 |
# @${ECHO_MSG} "Please be aware that GTK support is buggy. Do not report bugs to" |
136 |
# @${ECHO_MSG} "the maintainer." |
137 |
# @${ECHO_MSG} "Please also be aware that the package's name was automagically changed" |
138 |
# @${ECHO_MSG} "to ${PORTNAME}${PKGNAMESUFFIX}-${XEMACS_VER}." |
139 |
#.endif |
140 |
|
119 |
|
141 |
.include <bsd.port.post.mk> |
120 |
.include <bsd.port.post.mk> |