Added
Link Here
|
1 |
# |
2 |
# $FreeBSD$ |
3 |
# |
4 |
# This file contains some variable definitions that are supposed to |
5 |
# make your life easier when dealing with ports related to the GNUstep. |
6 |
# |
7 |
# |
8 |
# Options for user to customize in /etc/make.conf: |
9 |
# ================================================ |
10 |
# |
11 |
# WANT_GNUSTEP_XDPS=yes |
12 |
# use xdps as backend instead of xlib. |
13 |
# |
14 |
# WANT_GNUSTEP_LIBART=yes |
15 |
# use libart as backend instead of xlib. |
16 |
# |
17 |
# |
18 |
# Options for a port before include this file: |
19 |
# ============================================ |
20 |
# |
21 |
# USE_GNUSTEP_BASE=yes |
22 |
# your port depends on the gnustep-base port. |
23 |
# |
24 |
# USE_GNUSTEP_GUI=yes |
25 |
# your port depends on the gnustep-gui port. |
26 |
# |
27 |
# USE_GNUSTEP_BACK=yes |
28 |
# your port depends on teh gnustep-back port. |
29 |
# |
30 |
# USE_GNUSTEP_CONFIGURE=yes |
31 |
# call configure script with GNUstep.sh sourced in the current shell |
32 |
# |
33 |
# USE_GNUSTEP_BUILD=yes |
34 |
# call build target with GNUstep.sh sourced in the current shell |
35 |
# |
36 |
# USE_GNUSTEP_INSTALL=yes |
37 |
# call install target with GNUstep.sh sourced in the current shell |
38 |
# |
39 |
|
40 |
# --------------------------------------------------------------------------- |
41 |
.if !defined(_POSTMKINCLUDED) |
42 |
|
43 |
GNUstep_Include_MAINTAINER= dinoex@FreeBSD.org |
44 |
|
45 |
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcallback.a:${PORTSDIR}/devel/ffcall |
46 |
LIB_DEPENDS+= objc:${PORTSDIR}/${GNUSTEP_OBJC_PORT} |
47 |
|
48 |
GNUSTEP_MAKE_PORT?= devel/gnustep-make |
49 |
GNUSTEP_OBJC_PORT?= lang/gnustep-objc |
50 |
GNUSTEP_BASE_PORT?= lang/gnustep-base |
51 |
GNUSTEP_GUI_PORT?= x11-toolkits/gnustep-gui |
52 |
GNUSTEP_BACK_PORT?= x11-toolkits/gnustep-back |
53 |
GNUSTEP_XDPS_PORT?= x11-toolkits/gnustep-xdps |
54 |
GNUSTEP_ART_PORT?= x11-toolkits/gnustep-art |
55 |
|
56 |
.if ${MACHINE_ARCH} == "i386" |
57 |
GNU_ARCH= ix86 |
58 |
.else |
59 |
GNU_ARCH= ${MACHINE_ARCH} |
60 |
.endif |
61 |
|
62 |
PLIST_SUB+= GNU_ARCH=${GNU_ARCH} OPSYS=${OPSYS:L} VERSION=${PORTVERSION} |
63 |
PLIST_SUB+= MAJORVERSION=${PORTVERSION:C/([0-9]).*/\1/1} |
64 |
|
65 |
SYSTEMDIR= ${PREFIX}/System |
66 |
SYSMAKEDIR= ${SYSTEMDIR}/Makefiles |
67 |
SYSLIBDIR= ${SYSTEMDIR}/Libraries/${GNU_ARCH}/${OPSYS:L} |
68 |
COMBOLIBDIR= ${SYSTEMDIR}/Libraries/${GNU_ARCH}/${OPSYS:L}/gnu-gnu-gnu |
69 |
BUNDLEDIR= ${SYSTEMDIR}/Library/Bundles |
70 |
COMBOPATH= ${GNU_ARCH}/${OPSYS:L}/gnu-gnu-gnu |
71 |
LOCALLIBDIR= ${PREFIX}/Local/Libraries/${COMBOPATH} |
72 |
CC= gcc32 |
73 |
CXX= g++32 |
74 |
|
75 |
# --------------------------------------------------------------------------- |
76 |
# using base |
77 |
# |
78 |
.if defined(USE_GNUSTEP_BASE) |
79 |
BUILD_DEPENDS+= ${COMBOLIBDIR}/libgnustep-base.so:${PORTSDIR}/${GNUSTEP_BASE_PORT} |
80 |
RUN_DEPENDS+= ${COMBOLIBDIR}/libgnustep-base.so:${PORTSDIR}/${GNUSTEP_BASE_PORT} |
81 |
.endif |
82 |
|
83 |
# --------------------------------------------------------------------------- |
84 |
# using gui |
85 |
# |
86 |
.if defined(USE_GNUSTEP_GUI) |
87 |
BUILD_DEPENDS+= ${COMBOLIBDIR}/libgnustep-gui.so:${PORTSDIR}/${GNUSTEP_GUI_PORT} |
88 |
RUN_DEPENDS+= ${COMBOLIBDIR}/libgnustep-gui.so:${PORTSDIR}/${GNUSTEP_GUI_PORT} |
89 |
.endif |
90 |
|
91 |
# --------------------------------------------------------------------------- |
92 |
# using any backend |
93 |
# |
94 |
.if defined(USE_GNUSTEP_BACK) |
95 |
.if defined(WANT_GNUSTEP_XDPS) |
96 |
GNUSTEP_WITH_XDPS=yes |
97 |
.else |
98 |
.if defined(WANT_GNUSTEP_LIBART) |
99 |
USE_GNUSTEP_LIBART=yes |
100 |
.else |
101 |
USE_GNUSTEP_XLIB=yes |
102 |
.endif |
103 |
.endif |
104 |
.endif |
105 |
|
106 |
# --------------------------------------------------------------------------- |
107 |
# Backend using xlib |
108 |
# |
109 |
.if defined(USE_GNUSTEP_XLIB) |
110 |
BUILD_DEPENDS+= ${BACKBUNDLEDIR}/libgnustep-back:${PORTSDIR}/${GNUSTEP_BACK_PORT} |
111 |
RUN_DEPENDS+= ${BACKBUNDLEDIR}/libgnustep-back:${PORTSDIR}/${GNUSTEP_BACK_PORT} |
112 |
|
113 |
BACKBUNDLEDIR= ${BUNDLEDIR}/libgnustep-back.bundle/${COMBOPATH} |
114 |
MAKE_FLAGS+= GUI_BACKEND_LIB=back |
115 |
.endif |
116 |
|
117 |
# --------------------------------------------------------------------------- |
118 |
# Backend using xdps |
119 |
# |
120 |
.if defined(USE_GNUSTEP_XDPS) |
121 |
BUILD_DEPENDS+= ${BACKBUNDLEDIR}/libgnustep-xdps:${PORTSDIR}/${GNUSTEP_XDPS_PORT} |
122 |
RUN_DEPENDS+= ${BACKBUNDLEDIR}/libgnustep-xdps:${PORTSDIR}/${GNUSTEP_XDPS_PORT} |
123 |
|
124 |
BACKBUNDLEDIR= ${BUNDLEDIR}/libgnustep-xdps.bundle/${COMBOPATH} |
125 |
MAKE_FLAGS+= GUI_BACKEND_LIB=xdps |
126 |
.endif |
127 |
|
128 |
# --------------------------------------------------------------------------- |
129 |
# Backend using libart |
130 |
# |
131 |
.if defined(USE_GNUSTEP_LIBART) |
132 |
BUILD_DEPENDS+= ${BACKBUNDLEDIR}/libgnustep-art:${PORTSDIR}/${GNUSTEP_ART_PORT} |
133 |
RUN_DEPENDS+= ${BACKBUNDLEDIR}/libgnustep-art:${PORTSDIR}/${GNUSTEP_ART_PORT} |
134 |
|
135 |
BACKBUNDLEDIR= ${BUNDLEDIR}/libgnustep-art.bundle/${COMBOPATH} |
136 |
MAKE_FLAGS+= GUI_BACKEND_LIB=art |
137 |
.endif |
138 |
|
139 |
# --------------------------------------------------------------------------- |
140 |
# source GNUstep.sh |
141 |
# |
142 |
.if defined(USE_GNUSTEP_CONFIGURE) |
143 |
do-configure: |
144 |
@(cd ${CONFIGURE_WRKSRC}; . ${SYSMAKEDIR}/GNUstep.sh; \ |
145 |
if ! ${SETENV} CC="${CC}" CXX="${CXX}" \ |
146 |
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \ |
147 |
INSTALL="/usr/bin/install -c -o ${BINOWN} -g ${BINGRP}" \ |
148 |
INSTALL_DATA="${INSTALL} -c" \ |
149 |
INSTALL_PROGRAM="${INSTALL} -c" \ |
150 |
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ |
151 |
${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}; then \ |
152 |
${ECHO} "===> Script \"${CONFIGURE_SCRIPT}\" failed: here are the contents of \"${CONFIGURE_LOG}\""; \ |
153 |
${CAT} ${CONFIGURE_LOG}; \ |
154 |
${ECHO} "(end of \"${CONFIGURE_LOG}\")"; \ |
155 |
${FALSE}; \ |
156 |
fi) |
157 |
.endif |
158 |
|
159 |
# --------------------------------------------------------------------------- |
160 |
# source GNUstep.sh |
161 |
# |
162 |
.if defined(USE_GNUSTEP_BUILD) |
163 |
BUILD_DEPENDS+= ${SYSMAKEDIR}/GNUstep.sh:${PORTSDIR}/${GNUSTEP_MAKE_PORT} |
164 |
|
165 |
do-build: |
166 |
@(cd ${WRKSRC}; . ${SYSMAKEDIR}/GNUstep.sh; \ |
167 |
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET}) |
168 |
|
169 |
.endif |
170 |
|
171 |
# --------------------------------------------------------------------------- |
172 |
# source GNUstep.sh |
173 |
# |
174 |
.if defined(USE_GNUSTEP_INSTALL) |
175 |
RUN_DEPENDS+= ${SYSMAKEDIR}/GNUstep.sh:${PORTSDIR}/${GNUSTEP_MAKE_PORT} |
176 |
|
177 |
do-install: |
178 |
@(cd ${WRKSRC}; . ${SYSMAKEDIR}/GNUstep.sh; \ |
179 |
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET}) |
180 |
|
181 |
.endif |
182 |
|
183 |
.endif |
184 |
|
185 |
# eof |