author | Jon Tibble <meths@btinternet.com> |
Mon, 16 Jan 2012 14:34:08 +0000 | |
branch | oi_151a |
changeset 258 | 5bc09d0bf94d |
parent 234 | aa6cc6a5e009 |
child 321 | f3de87aa29ac |
permissions | -rw-r--r-- |
186 | 1 |
# |
2 |
# This file and its contents are supplied under the terms of the |
|
3 |
# Common Development and Distribution License ("CDDL)". You may |
|
4 |
# only use this file in accordance with the terms of the CDDL. |
|
5 |
# |
|
6 |
# A full copy of the text of the CDDL should have accompanied this |
|
7 |
# source. A copy of the CDDL is also available via the Internet at |
|
8 |
# http://www.illumos.org/license/CDDL. |
|
9 |
# |
|
10 |
||
11 |
# |
|
12 |
# Copyright 2011, Andrzej Szeszo |
|
13 |
# |
|
14 |
||
234
aa6cc6a5e009
Moving sic_team to components directory
Alasdair Lumsden <al@everycity.co.uk>
parents:
186
diff
changeset
|
15 |
include ../../../make-rules/shared-macros.mk |
186 | 16 |
|
17 |
COMPONENT_NAME= nspr |
|
18 |
COMPONENT_VERSION= 4.8.4 |
|
19 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
20 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
21 |
COMPONENT_ARCHIVE_HASH= sha1:c4af8c2956674ff0f17b4247516716e92db40cf6 |
|
22 |
COMPONENT_ARCHIVE_URL= http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v$(COMPONENT_VERSION)/src/$(COMPONENT_ARCHIVE) |
|
23 |
||
234
aa6cc6a5e009
Moving sic_team to components directory
Alasdair Lumsden <al@everycity.co.uk>
parents:
186
diff
changeset
|
24 |
include ../../../make-rules/prep.mk |
aa6cc6a5e009
Moving sic_team to components directory
Alasdair Lumsden <al@everycity.co.uk>
parents:
186
diff
changeset
|
25 |
include ../../../make-rules/configure.mk |
aa6cc6a5e009
Moving sic_team to components directory
Alasdair Lumsden <al@everycity.co.uk>
parents:
186
diff
changeset
|
26 |
include ../../../make-rules/ips.mk |
186 | 27 |
|
28 |
CONFIGURE_SCRIPT = $(SOURCE_DIR)/mozilla/nsprpub/configure |
|
29 |
||
258
5bc09d0bf94d
Fix mozilla-nspr compiler and bump version
Jon Tibble <meths@btinternet.com>
parents:
234
diff
changeset
|
30 |
CONFIGURE_ENV += CC="$(CC)" |
5bc09d0bf94d
Fix mozilla-nspr compiler and bump version
Jon Tibble <meths@btinternet.com>
parents:
234
diff
changeset
|
31 |
|
186 | 32 |
CONFIGURE_LIBDIR.32 = /usr/lib/mps |
33 |
CONFIGURE_LIBDIR.64 = /usr/lib/mps/$(MACH64) |
|
34 |
||
35 |
CONFIGURE_OPTIONS.64 += --enable-64bit |
|
36 |
||
37 |
CONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX) |
|
38 |
CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS)) |
|
39 |
CONFIGURE_OPTIONS += --includedir=/usr/include/mps |
|
40 |
#CONFIGURE_OPTIONS += --disable-debug |
|
41 |
CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(BITS)) |
|
42 |
||
43 |
PKGMANGLE = true |
|
44 |
PKGLINT = true |
|
45 |
||
46 |
build: $(BUILD_32_and_64) |
|
47 |
||
48 |
install: $(INSTALL_32_and_64) |
|
49 |
$(MKDIR) -p $(PROTO_DIR)/usr/lib/pkgconfig |
|
50 |
cat $(COMPONENT_DIR)/nspr.pc | sed s/^Version:/Version:\ $(COMPONENT_VERSION)/ \ |
|
51 |
> $(PROTO_DIR)/usr/lib/pkgconfig/nspr.pc |