|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 |
|
22 # |
|
23 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 include ../../make-rules/shared-macros.mk |
|
27 |
|
28 COMPONENT_NAME= aalib |
|
29 COMPONENT_VERSION= 1.4.0 |
|
30 IPS_COMPONENT_VERSION = 1.4.5 |
|
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 COMPONENT_PROJECT_URL= http://aa-project.sourceforge.net/aalib |
|
33 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-1.4rc5.tar.gz |
|
34 COMPONENT_ARCHIVE_HASH= sha1:a23269e950a249d2ef93625837cace45ddbce03b |
|
35 COMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/aa-project/$(COMPONENT_ARCHIVE) |
|
36 |
|
37 include ../../make-rules/prep.mk |
|
38 include ../../make-rules/configure.mk |
|
39 include ../../make-rules/ips.mk |
|
40 include ../../make-rules/lint-libraries.mk |
|
41 |
|
42 PKG_PROTO_DIRS += $(COMPONENT_SRC) |
|
43 |
|
44 # We need to reset configure options here because aalib is confused with |
|
45 # CC and CFLAGS definitions as configure parameters. |
|
46 CONFIGURE_OPTIONS = --prefix=/usr |
|
47 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
|
48 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR) |
|
49 CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS)) |
|
50 CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS)) |
|
51 CONFIGURE_OPTIONS += --enable-shared |
|
52 CONFIGURE_OPTIONS += --disable-static |
|
53 CONFIGURE_OPTIONS += --x-includes=/usr/include |
|
54 CONFIGURE_OPTIONS += --x-libraries=$(CONFIGURE_LIBDIR.$(BITS)) |
|
55 CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(BITS)) |
|
56 |
|
57 CONFIGURE_ENV += CC="$(CC)" |
|
58 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
|
59 |
|
60 |
|
61 # common targets |
|
62 build: $(BUILD_32_and_64) |
|
63 |
|
64 install: $(INSTALL_32_and_64) |
|
65 |
|
66 # actually there is a test we put in the demos, |
|
67 # but it's 32-bit only and not a target |
|
68 test: $(NO_TESTS) |
|
69 |
|
70 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
71 |
|
72 include ../../make-rules/depend.mk |