summaryrefslogtreecommitdiff
path: root/homebrew/mapnik
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/mapnik
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/mapnik')
-rw-r--r--homebrew/mapnik/.beer111
-rw-r--r--homebrew/mapnik/.make.sh-auto17
-rw-r--r--homebrew/mapnik/_metadata/description1
-rw-r--r--homebrew/mapnik/_metadata/homepage1
-rw-r--r--homebrew/mapnik/_metadata/name1
-rw-r--r--homebrew/mapnik/_metadata/version1
-rwxr-xr-xhomebrew/mapnik/download.sh1
7 files changed, 133 insertions, 0 deletions
diff --git a/homebrew/mapnik/.beer b/homebrew/mapnik/.beer
new file mode 100644
index 000000000..005919513
--- /dev/null
+++ b/homebrew/mapnik/.beer
@@ -0,0 +1,111 @@
+{
+ "name": "Mapnik",
+ "description": "Toolkit for developing mapping applications",
+ "url": "https://github.com/mapnik/mapnik/releases/download/v3.0.22/mapnik-v3.0.22.tar.bz2",
+ "mirror": null,
+ "homepage": "https://mapnik.org/",
+ "depends": [
+ {
+ "depend": "pkg-config",
+ "build-depend": true
+ },
+ {
+ "depend": "boost",
+ "build-depend": false
+ },
+ {
+ "depend": "cairo",
+ "build-depend": false
+ },
+ {
+ "depend": "freetype",
+ "build-depend": false
+ },
+ {
+ "depend": "gdal",
+ "build-depend": false
+ },
+ {
+ "depend": "harfbuzz",
+ "build-depend": false
+ },
+ {
+ "depend": "icu4c",
+ "build-depend": false
+ },
+ {
+ "depend": "jpeg",
+ "build-depend": false
+ },
+ {
+ "depend": "libpng",
+ "build-depend": false
+ },
+ {
+ "depend": "libtiff",
+ "build-depend": false
+ },
+ {
+ "depend": "postgresql",
+ "build-depend": false
+ },
+ {
+ "depend": "proj",
+ "build-depend": false
+ },
+ {
+ "depend": "webp",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "ENV.cxx11",
+ "ENV.delete(\"SDKROOT\") if DevelopmentTools.clang_build_version >= 900",
+ "ENV.append_to_cflags \"-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H\"",
+ "boost = Formula[\"boost\"].opt_prefix",
+ "freetype = Formula[\"freetype\"].opt_prefix",
+ "harfbuzz = Formula[\"harfbuzz\"].opt_prefix",
+ "icu = Formula[\"icu4c\"].opt_prefix",
+ "jpeg = Formula[\"jpeg\"].opt_prefix",
+ "libpng = Formula[\"libpng\"].opt_prefix",
+ "libtiff = Formula[\"libtiff\"].opt_prefix",
+ "proj = Formula[\"proj\"].opt_prefix",
+ "webp = Formula[\"webp\"].opt_prefix",
+ "args = %W[",
+ "CC=#{ENV.cc}",
+ "CXX=#{ENV.cxx}",
+ "PREFIX=#{prefix}",
+ "BOOST_INCLUDES=#{boost}/include",
+ "BOOST_LIBS=#{boost}/lib",
+ "CAIRO=True",
+ "CPP_TESTS=False",
+ "FREETYPE_CONFIG=#{freetype}/bin/freetype-config",
+ "GDAL_CONFIG=#{Formula[\"gdal\"].opt_bin}/gdal-config",
+ "HB_INCLUDES=#{harfbuzz}/include",
+ "HB_LIBS=#{harfbuzz}/lib",
+ "ICU_INCLUDES=#{icu}/include",
+ "ICU_LIBS=#{icu}/lib",
+ "INPUT_PLUGINS=all",
+ "JPEG_INCLUDES=#{jpeg}/include",
+ "JPEG_LIBS=#{jpeg}/lib",
+ "NIK2IMG=False",
+ "PG_CONFIG=#{Formula[\"postgresql\"].opt_bin}/pg_config",
+ "PNG_INCLUDES=#{libpng}/include",
+ "PNG_LIBS=#{libpng}/lib",
+ "PROJ_INCLUDES=#{proj}/include",
+ "PROJ_LIBS=#{proj}/lib",
+ "TIFF_INCLUDES=#{libtiff}/include",
+ "TIFF_LIBS=#{libtiff}/lib",
+ "WEBP_INCLUDES=#{webp}/include",
+ "WEBP_LIBS=#{webp}/lib",
+ "]",
+ "system \"./configure\", *args",
+ "system \"make\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "3.0.22",
+ "file": "mapnik.rb"
+} \ No newline at end of file
diff --git a/homebrew/mapnik/.make.sh-auto b/homebrew/mapnik/.make.sh-auto
new file mode 100644
index 000000000..aabc6bb38
--- /dev/null
+++ b/homebrew/mapnik/.make.sh-auto
@@ -0,0 +1,17 @@
+pkg:setup
+ENV.cxx11
+ENV.delete("SDKROOT") if DevelopmentTools.clang_build_version >= 900
+ENV.append_to_cflags "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
+boost = Formula["boost"].opt_prefix
+freetype = Formula["freetype"].opt_prefix
+harfbuzz = Formula["harfbuzz"].opt_prefix
+icu = Formula["icu4c"].opt_prefix
+jpeg = Formula["jpeg"].opt_prefix
+libpng = Formula["libpng"].opt_prefix
+libtiff = Formula["libtiff"].opt_prefix
+proj = Formula["proj"].opt_prefix
+webp = Formula["webp"].opt_prefix
+args = %W[CC=#{ENV.cc} CXX=#{ENV.cxx} PREFIX=#{prefix} BOOST_INCLUDES=#{boost}/include BOOST_LIBS=#{boost}/lib CAIRO=True CPP_TESTS=False FREETYPE_CONFIG=#{freetype}/bin/freetype-config GDAL_CONFIG=#{Formula["gdal"].opt_bin}/gdal-config HB_INCLUDES=#{harfbuzz}/include HB_LIBS=#{harfbuzz}/lib ICU_INCLUDES=#{icu}/include ICU_LIBS=#{icu}/lib INPUT_PLUGINS=all JPEG_INCLUDES=#{jpeg}/include JPEG_LIBS=#{jpeg}/lib NIK2IMG=False PG_CONFIG=#{Formula["postgresql"].opt_bin}/pg_config PNG_INCLUDES=#{libpng}/include PNG_LIBS=#{libpng}/lib PROJ_INCLUDES=#{proj}/include PROJ_LIBS=#{proj}/lib TIFF_INCLUDES=#{libtiff}/include TIFF_LIBS=#{libtiff}/lib WEBP_INCLUDES=#{webp}/include WEBP_LIBS=#{webp}/lib ]
+pkg:configure *args
+make
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/mapnik/_metadata/description b/homebrew/mapnik/_metadata/description
new file mode 100644
index 000000000..1ffba14e3
--- /dev/null
+++ b/homebrew/mapnik/_metadata/description
@@ -0,0 +1 @@
+Toolkit for developing mapping applications
diff --git a/homebrew/mapnik/_metadata/homepage b/homebrew/mapnik/_metadata/homepage
new file mode 100644
index 000000000..c3417b372
--- /dev/null
+++ b/homebrew/mapnik/_metadata/homepage
@@ -0,0 +1 @@
+https://mapnik.org/
diff --git a/homebrew/mapnik/_metadata/name b/homebrew/mapnik/_metadata/name
new file mode 100644
index 000000000..0a4c1f031
--- /dev/null
+++ b/homebrew/mapnik/_metadata/name
@@ -0,0 +1 @@
+Mapnik
diff --git a/homebrew/mapnik/_metadata/version b/homebrew/mapnik/_metadata/version
new file mode 100644
index 000000000..6795d4dc3
--- /dev/null
+++ b/homebrew/mapnik/_metadata/version
@@ -0,0 +1 @@
+3.0.22
diff --git a/homebrew/mapnik/download.sh b/homebrew/mapnik/download.sh
new file mode 100755
index 000000000..9d5798bd5
--- /dev/null
+++ b/homebrew/mapnik/download.sh
@@ -0,0 +1 @@
+wget https://github.com/mapnik/mapnik/releases/download/v3.0.22/mapnik-v3.0.22.tar.bz2 \ No newline at end of file