summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-04 02:22:46 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-04 02:22:46 (EDT)
commit8d3d7d3942fd7621a378c613a3a7b255571fa3a7 (patch)
treee2cc10a434254b10d1cfeee1904bc87e8dd6482d /build
Initial commit
Diffstat (limited to 'build')
-rwxr-xr-xbuild23
1 files changed, 23 insertions, 0 deletions
diff --git a/build b/build
new file mode 100755
index 0000000..d156e02
--- /dev/null
+++ b/build
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+
+include ../source.mk
+
+nop:
+
+build:
+ (cd src && cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr \
+ -D STATIC_UBOX:BOOL=ON .)
+ oh-autobuild
+ touch $@
+
+install: build
+ oh-autoinstall
+ mv dest/usr/bin/opkg-cl dest/usr/bin/opkg-lede
+ @# opkg-lede's CMake build system doesn't install these...
+ cp src/utils/opkg-key dest/usr/bin/opkg-key
+ sed 's|@opkglibdir@|/var/lib|g' src/utils/update-alternatives.in \
+ >dest/usr/bin/update-alternatives
+ oh-fixperms
+ oh-strip
+ oh-installfiles
+ oh-shlibdeps