croptool

Image cropping tool
git clone git://lumidify.org/croptool.git (fast, but not encrypted)
git clone https://lumidify.org/croptool.git (encrypted, but very slow)
git clone git://4kcetb7mo7hj6grozzybxtotsub5bempzo4lirzc3437amof2c2impyd.onion/croptool.git (over tor)
Log | Files | Refs | README | LICENSE

Makefile (1522B)


      1 .POSIX:
      2 
      3 NAME = croptool
      4 VERSION = 1.2.1
      5 
      6 PREFIX = /usr/local
      7 MANPREFIX = ${PREFIX}/man
      8 
      9 BIN = ${NAME} croptool_crop
     10 SRC = ${BIN:=.c}
     11 MAN1 = ${BIN:=.1}
     12 MISCFILES = Makefile README CHANGELOG LICENSE TODO
     13 
     14 # Configuration options:
     15 
     16 # comment to disable double buffering
     17 DB_CFLAGS = `pkg-config --cflags xext`
     18 DB_LDFLAGS = `pkg-config --libs xext`
     19 # uncomment to disable double buffering
     20 #DB_CFLAGS = -DNODB
     21 #DB_LDFLAGS =
     22 
     23 # Note: Older systems might need `imlib2-config --cflags` and `imlib2-config --libs` instead of pkg-config.
     24 CROP_CFLAGS = ${CFLAGS} ${DB_CFLAGS} -Wall -Wextra -D_POSIX_C_SOURCE=200809L `pkg-config --cflags x11 imlib2`
     25 CROP_LDFLAGS = ${LDFLAGS} ${DB_LDFLAGS} `pkg-config --libs x11 imlib2` -lm
     26 
     27 all: ${BIN}
     28 
     29 .c:
     30 	${CC} -o $@ $< ${CROP_CFLAGS} ${CROP_LDFLAGS}
     31 
     32 install: all
     33 	mkdir -p "${DESTDIR}${PREFIX}/bin"
     34 	cp -f ${BIN} "${DESTDIR}${PREFIX}/bin"
     35 	for f in ${BIN}; do chmod 755 "${DESTDIR}${PREFIX}/bin/$$f"; done
     36 	mkdir -p "${DESTDIR}${MANPREFIX}/man1"
     37 	cp -f ${MAN1} "${DESTDIR}${MANPREFIX}/man1"
     38 	for m in ${MAN1}; do chmod 644 "${DESTDIR}${MANPREFIX}/man1/$$m"; done
     39 
     40 uninstall:
     41 	for f in ${BIN}; do rm -f "${DESTDIR}${PREFIX}/bin/$$f"; done
     42 	for m in ${MAN1}; do rm -f "${DESTDIR}${MANPREFIX}/man1/$$m"; done
     43 
     44 clean:
     45 	rm -f ${BIN}
     46 
     47 dist:
     48 	rm -rf "${NAME}-${VERSION}"
     49 	mkdir -p "${NAME}-${VERSION}"
     50 	cp -f ${MAN1} ${SRC} ${MISCFILES} "${NAME}-${VERSION}"
     51 	tar cf - "${NAME}-${VERSION}" | gzip -c > "${NAME}-${VERSION}.tar.gz"
     52 	rm -rf "${NAME}-${VERSION}"
     53 
     54 .PHONY: all clean install uninstall dist