2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2023 Andreas Wacknitz
14 # Copyright 2023 Friedrich Kink
18 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_NAME
= netpbm
21 COMPONENT_VERSION
= 10.73.43
23 COMPONENT_SUMMARY
= Netpbm is a toolkit for manipulation of graphic images
, including conversion of images between a variety of different formats.
24 COMPONENT_PROJECT_URL
= https
://netpbm.sourceforge.net
/
25 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
26 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).tgz
27 COMPONENT_ARCHIVE_HASH
= sha256
:f9fd9a7f932258224d1925bfce61396a15e0fad93e3853d6324ac308d1adebf8
28 COMPONENT_ARCHIVE_URL
= https
://sourceforge.net
/projects
/$(COMPONENT_NAME
)/files
/super_stable
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)/download
29 COMPONENT_FMRI
= library
/$(COMPONENT_NAME
)
30 COMPONENT_CLASSIFICATION
= System
/Libraries
31 COMPONENT_LICENSE
= GPL
,BSD
,MIT
,BSD
32 COMPONENT_LICENSE_FILE
= doc
/copyright_summary
34 include $(WS_MAKE_RULES
)/common.mk
38 # no SSE nor SSE2 for SPARC - CFLAGS switches descibed in config.mk.in does not work
39 ifeq ($(MACH64
), sparcv9
)
40 COMPONENT_PRE_BUILD_ACTION
= ( \
41 $(CLONEY
) $(SOURCE_DIR
) $(@D
); \
42 $(MKDIR
) $(PROTO_DIR
); \
43 $(GSED
) -i
-e
's/MACH64/$(MACH64)/' -e
's/WANT_SSE = Y/WANT_SSE = N/' files
/config.mk
; \
44 $(CP
) files
/config.mk
$(@D
)/config.mk
; \
47 COMPONENT_PRE_BUILD_ACTION
= ( \
48 $(CLONEY
) $(SOURCE_DIR
) $(@D
); \
49 $(MKDIR
) $(PROTO_DIR
); \
50 $(GSED
) -i
-e
's/MACH64/$(MACH64)/' files
/config.mk
; \
51 $(CP
) files
/config.mk
$(@D
)/config.mk
; \
55 # build with the distribution preferred libjpeg implementation
56 CFLAGS
+= $(JPEG_CPPFLAGS
) $(JPEG_CFLAGS
)
57 CXXFLAGS
+= $(JPEG_CPPFLAGS
) $(JPEG_CXXFLAGS
)
58 LDFLAGS
+= $(JPEG_LDFLAGS
)
60 COMPONENT_INSTALL_ARGS
= package
61 COMPONENT_INSTALL_TARGETS
= pkgdir
=$(PROTO_DIR
)/usr
62 COMPONENT_POST_INSTALL_ACTION
= ( \
63 $(GSED
) -i
-e
's/@VERSION@/$(COMPONENT_VERSION)/' $(PROTO_DIR
)/usr
/pkgconfig_template
; \
64 $(GSED
) -i
-e
's/-L@LINKDIR@ //' $(PROTO_DIR
)/usr
/pkgconfig_template
; \
65 $(GSED
) -i
-e
's:@INCLUDEDIR@:/usr/include/$(COMPONENT_NAME):' $(PROTO_DIR
)/usr
/pkgconfig_template
; \
66 $(GSED
) -i
-e
's/@VERSION@/$(COMPONENT_VERSION)/' $(PROTO_DIR
)/usr
/config_template
; \
67 $(GSED
) -i
-e
's:@INCLUDEDIR@:/usr/include/$(COMPONENT_NAME):' $(PROTO_DIR
)/usr
/config_template
; \
68 $(GSED
) -i
-e
's:@INCLUDEDIR@:/usr/include/$(COMPONENT_NAME):' $(PROTO_DIR
)/usr
/config_template
; \
69 $(GSED
) -i
-e
's:@BINDIR@:/usr/bin:' $(PROTO_DIR
)/usr
/config_template
; \
70 $(GSED
) -i
-e
's:@DATADIR@:/usr/share/$(COMPONENT_NAME):' $(PROTO_DIR
)/usr
/config_template
; \
71 $(GSED
) -i
-e
's/@LINKDIR@//' $(PROTO_DIR
)/usr
/config_template
; \
74 COMPONENT_TEST_TARGETS
= check-tree
75 COMPONENT_TEST_TRANSFORMS
= \
78 '-e "/All tests done./p"' \
83 # Auto-generated dependencies
84 REQUIRED_PACKAGES
+= $(JPEG_IMPLEM_PKG
)
85 REQUIRED_PACKAGES
+= image
/library
/libpng16
86 REQUIRED_PACKAGES
+= image
/library
/libtiff
87 REQUIRED_PACKAGES
+= library
/libxml2
88 REQUIRED_PACKAGES
+= library
/zlib
89 REQUIRED_PACKAGES
+= runtime
/perl
90 REQUIRED_PACKAGES
+= shell/ksh93
91 REQUIRED_PACKAGES
+= system
/library
92 REQUIRED_PACKAGES
+= system
/library
/math
93 REQUIRED_PACKAGES
+= x11
/library
/libx11